Skip to content

Instantly share code, notes, and snippets.

@jgwill
Created February 16, 2020 21:44
Show Gist options
  • Save jgwill/e36e1cfbad325f9ce14b07917fec3b4d to your computer and use it in GitHub Desktop.
Save jgwill/e36e1cfbad325f9ce14b07917fec3b4d to your computer and use it in GitHub Desktop.
CI: get Latest commit message in a Workflow
version: 2
jobs:
build:
docker:
- image: circleci/node:10.0.0
steps:
- checkout
- run:
name: Last Commit Message
command: git log --oneline --format=%B -n 1 HEAD > last_msg && cat last_msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment