Skip to content

Commit

Permalink
Update permissions and use more explicit branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweger committed Sep 12, 2024
1 parent b8ab713 commit 8154041
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/create-modeling-round.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
Expand Down Expand Up @@ -39,10 +40,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout -b new_round_$(date +%Y-%m-%d)
git checkout -b new_round_$(date +%Y-%m-%d-%H%M%S)
git push -u origin new_round_$(date +%Y-%m-%d-%H%M%S)
gh pr create \
--head new_round_$(date +%Y-%m-%d) \
--base main \
--title "Add new round $(date +%Y-%m-%d)" \
--title "Add new round $(date +%Y-%m-%d-%H%M%S)" \
--body "This PR was created via GitHub Actions: generate clade list and new round config."

0 comments on commit 8154041

Please sign in to comment.