Skip to content

Commit

Permalink
Check out a new branch first
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweger committed Sep 12, 2024
1 parent d0844bc commit b8ab713
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/create-modeling-round.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
pull-requests: write

jobs:
run-checks:
create-modeling-round:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand All @@ -29,9 +29,7 @@ jobs:

- name: Create clade list 🦠
run: |
ls -la auxiliary-data/modeled-clades/
uv run src/get_clades_to_model.py
ls -la auxiliary-data/modeled-clades/
- name: Add new round to hub tasks.json 📝
run: |
Expand All @@ -41,6 +39,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ls -la auxiliary-data/modeled-clades/
# gh pr create --head "new_round_$(date +%Y-%m-%d)" --title "Add new round $(date +%Y-%m-%d)" --body "This PR was created via GitHub Actions: generate clade list and new round config." --base main
git checkout -b new_round_$(date +%Y-%m-%d)
gh pr create \
--head new_round_$(date +%Y-%m-%d) \
--base main \
--title "Add new round $(date +%Y-%m-%d)" \
--body "This PR was created via GitHub Actions: generate clade list and new round config."

0 comments on commit b8ab713

Please sign in to comment.