Skip to content

Commit

Permalink
use $GITHUB_OUTPUT file (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
dholth authored Mar 2, 2023
1 parent a89b9f7 commit a02eb19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions canary-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ 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
if: inputs.comment-token != ''
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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit a02eb19

Please sign in to comment.