diff --git a/.github/workflows/scrape.yml b/.github/workflows/scrape.yml index 3a1ffbc..e5783ab 100644 --- a/.github/workflows/scrape.yml +++ b/.github/workflows/scrape.yml @@ -17,7 +17,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v4 + with: + token: ${{ secrets.MEONG }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.head_ref }} - name: Set up Python uses: actions/setup-python@v4 @@ -40,19 +45,9 @@ jobs: mv output/*.csv public/ - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: stefanzweifel/git-auto-commit-action@v5 with: - token: ${{ secrets.MEONG }} - commit-message: Update scraped data - title: Update scraped data - body: | - This PR updates the scraped data. - - Auto-generated by [create-pull-request][1] - - [1]: https://github.com/peter-evans/create-pull-request - branch: update-scraped-data - base: master - delete-branch: true + commit_message: "[skip ci] - updated" - name: Upload CSV files as artifact uses: actions/upload-artifact@v3