Skip to content

Commit

Permalink
Merge pull request #163 from afids/fix-release
Browse files Browse the repository at this point in the history
Use env variables to find tag
  • Loading branch information
kaitj authored Nov 24, 2021
2 parents 0786b77 + bac0a69 commit 89c43e5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/afids-validator_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout latest tag
id: semver_checkout
uses: EasyDesk/action-semver-checkout@v1
- name: Checkout release tag
uses: actions/checkout@master
with:
ref: ${{ env.GITHUB_SHA }}

- name: Update setup.py version
uses: jacobtomlinson/gha-find-replace@master
with:
include: "setup.py"
find: "v[0-9]+.[0-9]+.[0-9]+"
replace: "v${{ steps.semver_checkout.outputs.version }}"
replace: "${{ env.GITHUB_REF }}"

- name: Commit setup.py
run: |
Expand All @@ -34,9 +35,9 @@ jobs:

- name: Modify release to match release versions
run: |
git tag -a v${{ steps.semver_checkout.outputs.version }} -m "v${{ steps.semver_checkout.outputs.version }}"
git tag -a -f -m "$GITHUB_REF" "$GITHUB_REF"
git push
git push origin -f v${{ steps.semver_checkout.outputs.version }}
git push origin -f "$GITHUB_REF"
- name: Deploy heroku app
uses: akhileshns/[email protected]
Expand Down

0 comments on commit 89c43e5

Please sign in to comment.