diff --git a/README.md b/README.md index 80d0158..753261f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/examples.md b/docs/examples.md index 7e399d6..a318576 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -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