Skip to content

Commit

Permalink
Commit version update and tag together (#6513)
Browse files Browse the repository at this point in the history
Also update to checkout v4
  • Loading branch information
eradman authored Oct 9, 2023
1 parent 3edf779 commit 1d35085
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/periodic-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
bump-version-and-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
date="$(date +%y.%m).0-dev"
gawk -i inplace -F: -v q=\" -v tag=$date '/^ "version": / { print $1 FS, q tag q ","; next} { print }' package.json
Expand All @@ -22,6 +22,5 @@ jobs:
git config user.email [email protected]
git add package.json redash/__init__.py pyproject.toml
git commit -m "Snapshot: ${date}"
git push origin
git tag $date
git push origin $date
git push --atomic origin master refs/tags/$date

0 comments on commit 1d35085

Please sign in to comment.