diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index aabaef7..f068419 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -11,14 +11,15 @@ concurrency: group: tag cancel-in-progress: false +permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + actions: write + jobs: - create-tag: + bump-versions: runs-on: ubuntu-latest - permissions: - # Give the default GITHUB_TOKEN write permission to commit and push the - # added or changed files to the repository. - contents: write - actions: write steps: - uses: actions/checkout@v4 - name: Setup Python @@ -34,8 +35,12 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: ${{ inputs.revision }} - - name: Wait to ensure tag is created off commit that was just pushed - run: sleep 5s + + create-tag: + runs-on: ubuntu-latest + needs: bump-versions + steps: + - uses: actions/checkout@v4 - name: Create tag uses: actions/github-script@v7 with: