Skip to content

Commit

Permalink
workflows: remove env usage
Browse files Browse the repository at this point in the history
Something in the Github Runner changed and the `env` context is no
longer available in the `job.*.env` position. This change has the step
use the default environment variables that held the same values.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Feb 23, 2022
1 parent 5997745 commit a40b184
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ jobs:
chlog_version: ${{ '0.14.0' }}
env:
BUILD_IMAGE: quay.io/projectquay/golang:1.17
REPO: ${{ env.GITHUB_REPOSITORY }}
REF: ${{ github.ref }}
steps:
- name: Setup
id: setup
run: |
: "${tag:="$(basename "${REF}")"}"
test "${REPO%%/*}" = quay && REPO="projectquay/${REPO##*/}" ||:
: "${tag:="$(basename "${GITHUB_REF}")"}"
: "${repo:=$GITHUB_REPOSITORY}"
test "${GITHUB_REPOSITORY_OWNER}" = quay && repo="projectquay/${GITHUB_REPOSITORY##*/}" ||:
printf '::set-output name=version::%s\n' "$tag"
printf '::set-output name=tar_prefix::%s\n' "clair-${tag}"
printf '::set-output name=image_tag::%s\n' "${tag#v}"
printf '::set-output name=image_repo::%s\n' "${REPO}"
printf '::set-output name=image_repo::%s\n' "${repo}"
printf '::set-output name=build_image::%s\n' "${BUILD_IMAGE}"
printf '::set-output name=build_go_version::%s\n' "${BUILD_IMAGE##*:}"
- name: Check go version
Expand Down

0 comments on commit a40b184

Please sign in to comment.