Skip to content

Commit

Permalink
chore: fix github set-env deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Nov 13, 2020
1 parent a06c5d2 commit d407567
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit d407567

Please sign in to comment.