Skip to content

Commit

Permalink
Replace set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Oct 18, 2022
1 parent 17154d0 commit b5edc24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ jobs:
args: --exit-code --recursive --in-place --aggressive --aggressive .
- name: Set autopep8 branch name
id: vars
run: echo ::set-output name=branch-name::"autopep8-patches/${{ github.head_ref }}"
run: |
branch-name="autopep8-patches/${{ github.head_ref }}"
echo "branch-name=$branch-name" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: steps.autopep8.outputs.exit-code == 2
uses: peter-evans/create-pull-request@v3
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -uo pipefail

autopep8 $*
echo ::set-output name=exit-code::$?
echo "exit-code=$?" >> $GITHUB_OUTPUT

0 comments on commit b5edc24

Please sign in to comment.