Skip to content

Github Action for getting information on the current commit

License

Notifications You must be signed in to change notification settings

thedigitalstudio/commit-info

Repository files navigation

Version number generator action

This action intends to set more helpful messages about the current github commit.

Getting Started

Use as a step like the following:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v1
    - name: Get Commit info
      id: info
      uses: thedigitalstudio/commit-info@master
      with:
        GITHUB_SHA: ${{ github.sha }}
    - name: Print the data
      run: |
        echo ${{ steps.info.outputs.GITHUB_ONELINE }}
        echo ${GITHUB_ONELINE}

This will make the following environment variables accessible from subsequent steps GITHUB_ONELINE BUILD_URL

As you can see, you can use the generated variable as an environment variable or via the yaml templating

About

Github Action for getting information on the current commit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published