Skip to content

Commit

Permalink
Use environment files in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Nov 7, 2022
1 parent 621615b commit 8352376
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
ghc --version
cabal --version
echo "::set-output name=cabal-store::$(cabal --help | tail -1 | tr -d ' ' | rev | cut -d '/' -f2- | rev)\\store"
echo "cabal-store=$(cabal --help | tail -1 | tr -d ' ' | rev | cut -d '/' -f2- | rev)\\store" >> $GITHUB_OUTPUT
- name: Set cache version
run: echo "CACHE_VERSION=grFfw8r" >> $GITHUB_ENV
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
cabal build all --dry-run
cat ${{ env.PLAN_JSON }} | jq -r '."install-plan"[].id' | sort | uniq > dependencies.txt
date > date.txt
echo "::set-output name=weeknum::$(/bin/date -u "+%W")"
echo "weeknum=$(/bin/date -u "+%W")" >> $GITHUB_OUTPUT
- name: Cache Cabal store
uses: actions/cache@v2
Expand Down Expand Up @@ -274,7 +274,8 @@ jobs:

- name: Create Release Tag
id: create_release_tag
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
run:
echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Create Release
id: create_release
Expand Down

0 comments on commit 8352376

Please sign in to comment.