Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andychucs committed Jul 26, 2024
1 parent 2f38779 commit b2c8477
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/data_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,20 @@ jobs:
run: |
poetry run python -m script.akashi_schedule
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
- name: Checkout a new branch
run: |
git checkout -b data_update_${{github.run_id}}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add-paths: |
data/*
default_author: github_actions
message: "GitHub Actions Update"
add: "data/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: create pull request
run: gh pr create -B base_branch -H branch_to_merge --title 'Merge branch_to_merge into base_branch' --body 'Created by Github action'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b2c8477

Please sign in to comment.