A GitHub Action to get an auto-incrementing build number in any job.
- uses: travisj/build-number-action@v1
id: my-project-build-number
- name: Echo Build Number
run: echo $BUILD_NUMBER
env:
BUILD_NUMBER: ${{ steps.my-project-build-number.outputs.build-number }}
- uses: travisj/build-number-action@v1
id: my-project-build-number
with:
key: my-project