66 pull_request :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v2
9+ - uses : actions/checkout@v4
1010 - name : Parse issue and update bibtex file
1111 if : github.event.label.name == 'food for bibbot'
1212 run : |
@@ -15,12 +15,16 @@ jobs:
1515 python3 -m pip install --user setuptools
1616 python3 -m pip install --user bibtexparser arxivcheck
1717 python3 issue_to_bibtex.py -b "${{ github.event.issue.body }}" > comment.out 2>&1
18- echo "::set-output name=COMMENT::$(cat comment.out)"
18+ {
19+ echo 'COMMENT<<GITHUB_OUTPUT_DELIMITER'
20+ cat comment.out
21+ echo 'GITHUB_OUTPUT_DELIMITER'
22+ } >> "$GITHUB_OUTPUT"
1923 rm -rf comment.out
2024 id : updater
2125 - name : Create Pull Request
2226 if : github.event.label.name == 'food for bibbot'
23- uses : peter-evans/create-pull-request@v3
27+ uses : peter-evans/create-pull-request@v7
2428 with :
2529 token : ${{ secrets.GITHUB_TOKEN }}
2630 commit-message : updated pint.bib using bibbot
2933 branch : bibtex-bibbot-${{ github.event.issue.number }}
3034 branch-suffix : short-commit-hash
3135 - name : Add comment to issue
32- uses : actions/github-script@0.3.0
36+ uses : actions/github-script@v7
3337 if : github.event.label.name == 'food for bibbot' && steps.updater.outputs.COMMENT != ''
38+ env :
39+ COMMENT : ${{ steps.updater.outputs.COMMENT }}
3440 with :
3541 github-token : ${{secrets.GITHUB_TOKEN}}
3642 script : |
37- github.issues.createComment({...context.issue, body: '${{ steps.updater.outputs. COMMENT }}' })
43+ github.rest. issues.createComment({...context.issue, body: process.env. COMMENT})
0 commit comments