From aef100f6b43b8e2a89aa7ab6bed679ece99fd892 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Tue, 18 Oct 2022 16:56:13 +0900 Subject: [PATCH] Replace set-output --- .github/workflows/ci.yml | 4 ++-- .github/workflows/test-command.yml | 4 ++-- README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c2e834..4a417a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,9 +40,9 @@ jobs: - id: vars run: | if [[ "${{ github.event_name }}" == "pull_request" ]]; then \ - echo "::set-output name=issue-number::${{ github.event.number }}"; \ + echo "issue-number=${{ github.event.number }}" >> $GITHUB_OUTPUT; \ else \ - echo "::set-output name=issue-number::1"; \ + echo "issue-number=1" >> $GITHUB_OUTPUT; \ fi test: diff --git a/.github/workflows/test-command.yml b/.github/workflows/test-command.yml index a955cbc..aff65fd 100644 --- a/.github/workflows/test-command.yml +++ b/.github/workflows/test-command.yml @@ -12,10 +12,10 @@ jobs: run: | repository=${{ github.event.client_payload.slash_command.repository }} if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi - echo ::set-output name=repository::$repository + echo "repository=$repository" >> $GITHUB_OUTPUT branch=${{ github.event.client_payload.slash_command.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 diff --git a/README.md b/README.md index 584e1f2..7d4eb22 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ The content must be [escaped to preserve newlines](https://github.community/t/se body="${body//'%'/'%25'}" body="${body//$'\n'/'%0A'}" body="${body//$'\r'/'%0D'}" - echo "::set-output name=body::$body" + echo "body=$body" >> $GITHUB_OUTPUT - name: Create comment uses: peter-evans/create-or-update-comment@v2