docs: replace set-output

This commit is contained in:
Peter Evans
2022-10-18 17:06:03 +09:00
parent a28ee6cd74
commit 8a2a9e559c
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -261,7 +261,7 @@ Another option is to reply with a new comment containing a link to the run outpu
```yml
- name: Create URL to the run output
id: vars
run: echo ::set-output name=run-url::https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_OUTPUT
- name: Create comment
uses: peter-evans/create-or-update-comment@v2
+5 -3
View File
@@ -32,7 +32,7 @@ jobs:
run: |
branch=${{ github.event.client_payload.slash_command.args.named.branch }}
if [[ -z "$branch" ]]; then branch="main"; fi
echo ::set-output name=branch::$branch
echo "branch=$branch" >> $GITHUB_OUTPUT
# Checkout the branch to test
- uses: actions/checkout@v3
@@ -83,7 +83,7 @@ jobs:
run: |
branch=${{ github.event.client_payload.slash_command.args.named.branch }}
if [[ -z "$branch" ]]; then branch="main"; fi
echo ::set-output name=branch::$branch
echo "branch=$branch" >> $GITHUB_OUTPUT
# Checkout the branch to test
- uses: actions/checkout@v3
@@ -264,7 +264,9 @@ jobs:
# Execute black in check mode
- name: Black
id: black
run: echo ::set-output name=format::$(black --check --quiet . || echo "true")
run: |
format=$(black --check --quiet . || echo "true")
echo "format=$format" >> $GITHUB_OUTPUT
# Execute black and commit the change to the PR branch
- name: Commit to the PR branch