From dab6f89f41d2c1247c92d75a5ff9b6ea7709363c Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Wed, 21 Aug 2024 10:03:00 -0600 Subject: [PATCH] Ensure that tag creation occurs after file updates --- .github/workflows/scheduled_update.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/scheduled_update.yaml b/.github/workflows/scheduled_update.yaml index 3427380..e977bde 100644 --- a/.github/workflows/scheduled_update.yaml +++ b/.github/workflows/scheduled_update.yaml @@ -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 @@ -44,6 +46,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + needs: update env: GH_TOKEN: ${{ github.token }} steps: