File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2323 # Execute black in check mode
2424 - name : Black
2525 id : black
26- run : echo ::set-output name=format::$(black --check --quiet . || echo "true")
26+ run : |
27+ format=$(black --check --quiet . || echo "true")
28+ echo "format=$format" >> $GITHUB_OUTPUT
2729
2830 # Execute black and commit the change to the PR branch
2931 - name : Commit to the PR branch
Original file line number Diff line number Diff line change 2828
2929 - name : Create URL to the run output
3030 id : vars
31- run : echo ::set-output name= run-url:: https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
31+ run : echo " run-url= https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
3232
3333 - name : Create comment
3434 uses : peter-evans/create-or-update-comment@v2
Original file line number Diff line number Diff line change 1616
1717 - name : Create URL to the run output
1818 id : vars
19- run : echo ::set-output name= run-url:: https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
19+ run : echo " run-url= https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
2020
2121 - name : Create comment
2222 uses : peter-evans/create-or-update-comment@v2
Original file line number Diff line number Diff line change 2222 if [[ $commit_msg =~ "[autopep8-command]" ||
2323 $commit_msg =~ "[black-command]" ]]
2424 then
25- echo ::set-output name= revert:: true
25+ echo " revert= true" >> $GITHUB_OUTPUT
2626 fi
2727
2828 # Revert the last commit to the PR branch
You can’t perform that action at this time.
0 commit comments