Browse Source

Remove use of deprecated ::set-env in GitHub Actions (#59)

0.2.8
Aaron Dewes 4 years ago
committed by GitHub
parent
commit
3d9bf6bb89
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/on-push.yml
  2. 2
      .github/workflows/on-tag.yml

2
.github/workflows/on-push.yml

@ -10,7 +10,7 @@ jobs:
name: Build and push manager image name: Build and push manager image
steps: steps:
- name: Set env variables - name: Set env variables
run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Show set env variables - name: Show set env variables
run: | run: |
printf " BRANCH: %s\n" "$BRANCH" printf " BRANCH: %s\n" "$BRANCH"

2
.github/workflows/on-tag.yml

@ -15,7 +15,7 @@ jobs:
name: Build and push manager image name: Build and push manager image
steps: steps:
- name: Set env variables - name: Set env variables
run: echo ::set-env name=TAG::${GITHUB_REF/refs\/tags\//} run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Show set environment variables - name: Show set environment variables
run: | run: |

Loading…
Cancel
Save