-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix github
set-env
deprecated warning
- Loading branch information
1 parent
a06c5d2
commit d407567
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,14 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set DOCKER_REPO_NAME env | ||
run: echo ::set-env name=DOCKER_REPO_NAME::$(basename ${GITHUB_REPOSITORY}) | ||
run: echo DOCKER_REPO_NAME=$(basename ${GITHUB_REPOSITORY}) >> ${GITHUB_ENV} | ||
- name: Set IMAGE_TAG env | ||
run: echo ::set-env name=IMAGE_TAG::$(basename ${GITHUB_REF}) | ||
run: echo IMAGE_TAG=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} | ||
- name: Environment Printer | ||
uses: managedkaos/[email protected] | ||
- name: Append latest if master branches # env '${IMAGE_TAG},latest' | ||
if: endsWith(github.ref, 'master') | ||
run: echo ::set-env name=IMAGE_TAG::${IMAGE_TAG},latest | ||
run: echo IMAGE_TAG=${IMAGE_TAG},latest >> ${GITHUB_ENV} | ||
- name: Environment Printer | ||
uses: managedkaos/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set DOCKER_REPO_NAME env | ||
run: echo ::set-env name=DOCKER_REPO_NAME::$(basename ${GITHUB_REPOSITORY}) | ||
run: echo DOCKER_REPO_NAME=$(basename ${GITHUB_REPOSITORY}) >> ${GITHUB_ENV} | ||
- name: Set IMAGE_TAG env | ||
run: echo ::set-env name=IMAGE_TAG::$(basename ${GITHUB_REF}) | ||
run: echo IMAGE_TAG=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} | ||
- name: Append latest for each release | ||
run: echo ::set-env name=IMAGE_TAG::${IMAGE_TAG},latest | ||
run: echo IMAGE_TAG=${IMAGE_TAG},latest >> ${GITHUB_ENV} | ||
- name: Environment Printer | ||
uses: managedkaos/[email protected] | ||
|
||
|