actions: dmsbg-100 fix cache-prefix
All checks were successful
/ build-and-publish (push) Successful in 2h6m10s
All checks were successful
/ build-and-publish (push) Successful in 2h6m10s
This commit is contained in:
parent
697a3924cc
commit
e583b5c0a9
1 changed files with 6 additions and 2 deletions
|
@ -18,9 +18,13 @@ jobs:
|
||||||
TAG_REF=${GITHUB_REF#refs/tags/}
|
TAG_REF=${GITHUB_REF#refs/tags/}
|
||||||
IFS='.' read -ra VERSION <<< "$TAG_REF"
|
IFS='.' read -ra VERSION <<< "$TAG_REF"
|
||||||
if [[ ${VERSION[2]} -eq 0 ]]; then
|
if [[ ${VERSION[2]} -eq 0 ]]; then
|
||||||
echo "ENVIRONMENT=Production" >> $GITHUB_ENV
|
echo "ENVIRONMENT=master" >> $GITHUB_ENV
|
||||||
|
echo "cache-prefix=master" >> $GITHUB_ENV
|
||||||
|
echo "::set-output name=cache-prefix::master"
|
||||||
else
|
else
|
||||||
echo "ENVIRONMENT=Staging" >> $GITHUB_ENV
|
echo "ENVIRONMENT=staging" >> $GITHUB_ENV
|
||||||
|
echo "cache-prefix=staging" >> $GITHUB_ENV
|
||||||
|
echo "::set-output name=cache-prefix::staging"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cache DifOS Build Directory
|
- name: Cache DifOS Build Directory
|
||||||
|
|
Loading…
Reference in a new issue