From a02eb19409c8bff1b09299326f0fe0aeefa2ce9a Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Thu, 2 Mar 2023 10:45:52 -0500 Subject: [PATCH] use $GITHUB_OUTPUT file (#79) --- canary-release/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/canary-release/action.yml b/canary-release/action.yml index 0ec80da..bd95e79 100644 --- a/canary-release/action.yml +++ b/canary-release/action.yml @@ -38,7 +38,7 @@ runs: - name: Set output variables id: vars shell: bash -l {0} - 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 if there is no status update uses: marocchino/sticky-pull-request-comment@v2 @@ -46,7 +46,7 @@ runs: with: message: | # ${{ inputs.comment-headline }} - > The workflow for building and uploading a canary release for ${{ inputs.package-name }} with the label `${{ inputs.anaconda-org-label }}` in channel `${{ inputs.anaconda-org-channel }}` [was started](${{ steps.vars.outputs.run-url }}) by @${{ github.actor }}! + > The workflow for building and uploading a canary release for ${{ inputs.package-name }} with the label `${{ inputs.anaconda-org-label }}` in channel `${{ inputs.anaconda-org-channel }}` [was started](${{ steps.vars.outputs.RUN_URL }}) by @${{ github.actor }}! Once it's done, use this command to try it out in a new conda environment: @@ -106,7 +106,7 @@ runs: with: append: true message: | - - build [${{ github.run_id }}](${{ steps.vars.outputs.run-url }}) succeeded on ${{ runner.os }} (${{ runner.arch }}) + - build [${{ github.run_id }}](${{ steps.vars.outputs.RUN_URL }}) succeeded on ${{ runner.os }} (${{ runner.arch }}) GITHUB_TOKEN: ${{ inputs.comment-token }} - name: Leave comment after build @@ -115,5 +115,5 @@ runs: with: append: true message: | - - build [${{ github.run_id }}](${{ steps.vars.outputs.run-url }}) failed on ${{ runner.os }} (${{ runner.arch }}) + - build [${{ github.run_id }}](${{ steps.vars.outputs.RUN_URL }}) failed on ${{ runner.os }} (${{ runner.arch }}) GITHUB_TOKEN: ${{ inputs.comment-token }}