Skip to content

Instantly share code, notes, and snippets.

@atomoil
Last active March 19, 2020 18:32
Show Gist options
  • Save atomoil/65156f8b66aa09d7619ae8226144a860 to your computer and use it in GitHub Desktop.
Save atomoil/65156f8b66aa09d7619ae8226144a860 to your computer and use it in GitHub Desktop.
Show the commit name in a Github Action
jobs:
jazzy:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: commit_name
run: echo ::set-output name=NAME::${GITHUB_REF#refs/*/}
- name: Echo commit name
run: echo ref is ${{ steps.commit_name.outputs.NAME }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment