Skip to content

Commit

Permalink
switch from set-output to $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Oct 19, 2022
1 parent 4c64767 commit 6c4c758
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ runs:
# here. Wait to see if anyone needs something else.
- name: URL encode project name
id: project
run: echo "::set-output name=project::${{ inputs.project }}" | sed -e 's:/:%2F:g'
run: echo "project=${{ inputs.project }}" | sed -e 's:/:%2F:g' >> $GITHUB_OUTPUT
shell: bash

# The Coverity site says the tool is usually updated twice yearly, so the
# md5 of download can be used to determine whether there's been an update.
- name: Lookup Coverity Build Tool hash
id: coverity-cache-lookup
run: |
printf "::set-output name=hash::"; \
curl https://scan.coverity.com/download/${{ inputs.build_language }}/${{ inputs.build_platform }} \
--data "token=${TOKEN}&project=${{ steps.project.outputs.project }}&md5=1"
hash=$(curl https://scan.coverity.com/download/${{ inputs.build_language }}/${{ inputs.build_platform }} \
--data "token=${TOKEN}&project=${{ steps.project.outputs.project }}&md5=1"); \
echo "hash=${hash}" >> $GITHUB_OUTPUT
shell: bash
env:
TOKEN: ${{ inputs.token }}
Expand Down

0 comments on commit 6c4c758

Please sign in to comment.