File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ permissions: {}
77jobs :
88 scrape :
99 runs-on : ubuntu-latest
10- permissions : { contents: read }
10+ permissions : { contents: write }
1111 steps :
1212 - uses : step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
1313 with : { egress-policy: audit }
2222 GIT_COMMITTER_NAME : ${{ vars.GHA_BOT_NAME }}
2323 GIT_COMMITTER_EMAIL : ${{ vars.GHA_BOT_EMAIL }}
2424
25- - run : git log --format='- %s' --reverse ${{github.sha}}.. >> ${{ runner.temp }}/pr-body
26- - uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
27- with :
28- token : ${{ secrets.BOT_TOKEN }}
29- branch : latest-scraped-definitions
30- title : " Scraped latest definitions"
31- body-path : ${{ runner.temp }}/pr-body
25+ - run : git checkout -b scrape/latest-definitions && git push -u origin HEAD
26+ - run : gh pr create --fill --title "$PR_TITLE"
27+ env :
28+ GH_TOKEN : ${{ secrets.BOT_TOKEN }}
29+ PR_TITLE : " Scraped latest definitions"
You can’t perform that action at this time.
0 commit comments