Move env command before cache

This commit is contained in:
Muhammed Zakir 2020-09-25 10:39:15 +00:00 committed by GitHub
parent d38c6b706e
commit 7e591804a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,9 @@ jobs:
- name: Check out
uses: actions/checkout@v2
- run: echo ::set-env name=GITHUB_SHA::$GITHUB_SHA
shell: bash
- uses: actions/cache@v1
name: Cache ~/.stack
with:
@ -29,9 +32,6 @@ jobs:
stack-no-global: true
stack-setup-ghc: true
- run: echo ::set-env name=GITHUB_SHA::$GITHUB_SHA
shell: bash
- name: Build
run: stack build