Skip to content

Commit

Permalink
Ensure that tag creation occurs after file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmock committed Aug 21, 2024
1 parent 04f33b2 commit dab6f89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/scheduled_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
- run: npm install
- run: npm run build
- run: |
set -ex
git diff --name-only
if [ $(git diff --name-only | wc -l) -gt 0 ]; then
tag=$(jq -r '.version' package.json)
# The GH api only allows for single file commits right now
Expand All @@ -44,6 +46,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
needs: update
env:
GH_TOKEN: ${{ github.token }}
steps:
Expand Down

0 comments on commit dab6f89

Please sign in to comment.