Skip to content

Commit

Permalink
Migrate from deprecated set-output in GitHub CI to using GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Aug 2, 2023
1 parent a1778e4 commit b78519f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Parse the cabal tested-with stanza
id: parse
run: |
echo "::set-output name=tested-with-versions::$(runghc .github/workflows/parseVersions.hs)"
echo "tested-with-versions=$(runghc .github/workflows/parseVersions.hs)" >> $GITHUB_OUTPUT
- name: Set the GHC matrix for the next job
id: set-ghc-matrix
# We use single quotes here, since the output from the previous step
# will not have escaped double quotes, and it's just easier to use single
# quotes on the outside than try to escape the inner double quotes.
run: echo '::set-output name=versions::{"ghc-version":${{ steps.parse.outputs.tested-with-versions }}}'
run: echo 'versions={"ghc-version":${{ steps.parse.outputs.tested-with-versions }}}' >> $GITHUB_OUTPUT

build:
name: Cabal Build Check
Expand Down

0 comments on commit b78519f

Please sign in to comment.