From a9033df5bb329f7997d994de55bed4105de71c5c Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Sat, 9 Nov 2024 19:09:00 -0800 Subject: [PATCH] modernize github output syntax --- .github/workflows/connector-tests.yml | 2 +- .github/workflows/fix-pr-command.yml | 8 ++++---- .github/workflows/poetry-lock-command.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/connector-tests.yml b/.github/workflows/connector-tests.yml index 23ec0650..8e80bb6b 100644 --- a/.github/workflows/connector-tests.yml +++ b/.github/workflows/connector-tests.yml @@ -99,7 +99,7 @@ jobs: if: ${{ matrix.cdk_extra != 'n/a' && needs.cdk_changes.outputs[matrix.cdk_extra] == 'false' }} run: | echo "Aborting job as specified extra not changed: ${{matrix.cdk_extra}} = ${{ needs.cdk_changes.outputs[matrix.cdk_extra] }}" - echo "::set-output name=status::cancelled" + echo "status=cancelled" >> $GITHUB_OUTPUT exit 1 continue-on-error: true # Get the monorepo so we can test the connectors diff --git a/.github/workflows/fix-pr-command.yml b/.github/workflows/fix-pr-command.yml index 6eebae8b..6f84546e 100644 --- a/.github/workflows/fix-pr-command.yml +++ b/.github/workflows/fix-pr-command.yml @@ -51,8 +51,8 @@ jobs: id: pr-info run: | PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.inputs.pr }}) - echo "::set-output name=repo::$(echo "$PR_JSON" | jq -r .head.repo.full_name)" - echo "::set-output name=branch::$(echo "$PR_JSON" | jq -r .head.ref)" + echo "repo=$(echo "$PR_JSON" | jq -r .head.repo.full_name)" >> $GITHUB_OUTPUT + echo "branch=$(echo "$PR_JSON" | jq -r .head.ref)" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -104,7 +104,7 @@ jobs: - name: Check for changes id: git-diff run: | - git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true" + git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT shell: bash # Commit changes (if any) @@ -129,7 +129,7 @@ jobs: - name: Check for changes ('unsafe' fixes) id: git-diff-2 run: | - git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true" + git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT shell: bash - name: Commit 'unsafe' lint fixes diff --git a/.github/workflows/poetry-lock-command.yml b/.github/workflows/poetry-lock-command.yml index a4a1145d..a5f90b55 100644 --- a/.github/workflows/poetry-lock-command.yml +++ b/.github/workflows/poetry-lock-command.yml @@ -48,8 +48,8 @@ jobs: id: pr-info run: | PR_JSON=$(gh api repos/${{ github.repository }}/pulls/${{ github.event.inputs.pr }}) - echo "::set-output name=repo::$(echo "$PR_JSON" | jq -r .head.repo.full_name)" - echo "::set-output name=branch::$(echo "$PR_JSON" | jq -r .head.ref)" + echo "repo=$(echo "$PR_JSON" | jq -r .head.repo.full_name)" >> $GITHUB_OUTPUT + echo "branch=$(echo "$PR_JSON" | jq -r .head.ref)" >> $GITHUB_OUTPUT env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -97,7 +97,7 @@ jobs: - name: Check for changes id: git-diff run: | - git diff --quiet && echo "No changes to commit" || echo "::set-output name=changes::true" + git diff --quiet && echo "No changes to commit" || echo "changes=true" >> $GITHUB_OUTPUT shell: bash # Commit changes (if any)