From 1c4fb9b2665d5f700d91bd86fdd2548160d555a0 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Thu, 1 Jun 2023 18:17:18 +0200 Subject: [PATCH] Migrate output variables to new GH output variables Signed-off-by: Andy Scherzinger --- .github/workflows/analysis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 29435e196..0a50c749f 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -19,14 +19,14 @@ jobs: run: | if [ -z "$GITHUB_HEAD_REF" ]; then # push - echo "::set-output name=branch::$GITHUB_REF_NAME" - echo "::set-output name=pr::$GITHUB_RUN_ID" - echo "::set-output name=repo::${{ github.repository }}" + echo "branch=$GITHUB_REF_NAME" >> "$GITHUB_OUTPUT" + echo "pr=$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT" + echo "repo=${{ github.repository }}" >> "$GITHUB_OUTPUT" else # pull request - echo "::set-output name=branch::$GITHUB_HEAD_REF" - echo "::set-output name=pr::${{ github.event.pull_request.number }}" - echo "::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }}" + echo "branch=$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT" + echo "pr=${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT" + echo "repo=${{ github.event.pull_request.head.repo.full_name }}" >> "$GITHUB_OUTPUT" fi - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 with: