Skip to content

Commit

Permalink
Merge pull request adobe#53 from shanejbrown/main
Browse files Browse the repository at this point in the history
Add git commit tag with current version
  • Loading branch information
shanejbrown authored Jul 28, 2023
2 parents 4b64d86 + afe658d commit 7116a7e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ jobs:
with:
files: test-reports/test-results.xml
check_name: "Test Results ${{ matrix.python-version }}"
tag-commit:
if: github.repository == 'adobe/buildrunner' && github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
# Fetch all history instead of the latest commit
fetch-depth: 0
- name: Get and set version in env
run: echo "CURRENT_VERSION=$( python setup.py --version )" >> $GITHUB_ENV
- name: Print current version
run: echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
- name: Tag commit
run: git tag ${{ env.CURRENT_VERSION }} && git push --tags
publish-pypi:
if: github.repository == 'adobe/buildrunner'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7116a7e

Please sign in to comment.