Skip to content

Commit

Permalink
separate version bump and tag creation into 2 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
apastel committed Jun 22, 2024
1 parent 6655265 commit b7af547
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit b7af547

Please sign in to comment.