From b2a473b83efb1b7224247b7101b228d43d668142 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Wed, 25 Jan 2023 10:22:28 -0500 Subject: [PATCH] chore: correct bootstrap tool script (#1514) --- .github/workflows/update-bootstrap-tools.yml | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/update-bootstrap-tools.yml b/.github/workflows/update-bootstrap-tools.yml index d34449157ecc..b013b4a2362f 100644 --- a/.github/workflows/update-bootstrap-tools.yml +++ b/.github/workflows/update-bootstrap-tools.yml @@ -31,22 +31,22 @@ jobs: COSIGN_LATEST_VERSION=$(go list -m -json github.com/sigstore/cosign@latest 2>/dev/null | jq -r '.Version') # update version variables in the Makefile - sed -r -i -e 's/^(GOLANGCILINT_VERSION = ).*/\1'${GOLANGCILINT_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(BOUNCER_VERSION = ).*/\1'${BOUNCER_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(CHRONICLE_VERSION = ).*/\1'${CHRONICLE_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(GORELEASER_VERSION = ).*/\1'${GORELEASER_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(GOSIMPORTS_VERSION = ).*/\1'${GOSIMPORTS_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(YAJSV_VERSION = ).*/\1'${YAJSV_LATEST_VERSION}'/' Makefile - sed -r -i -e 's/^(COSIGN_VERSION = ).*/\1'${COSIGN_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(GOLANGCILINT_VERSION := ).*/\1'${GOLANGCILINT_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(BOUNCER_VERSION := ).*/\1'${BOUNCER_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(CHRONICLE_VERSION := ).*/\1'${CHRONICLE_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(GORELEASER_VERSION := ).*/\1'${GORELEASER_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(GOSIMPORTS_VERSION := ).*/\1'${GOSIMPORTS_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(YAJSV_VERSION := ).*/\1'${YAJSV_LATEST_VERSION}'/' Makefile + sed -r -i -e 's/^(COSIGN_VERSION := ).*/\1'${COSIGN_LATEST_VERSION}'/' Makefile # export the versions for use with create-pull-request - echo "::set-output name=GOLANGCILINT::$GOLANGCILINT_LATEST_VERSION" - echo "::set-output name=BOUNCER::$BOUNCER_LATEST_VERSION" - echo "::set-output name=CHRONICLE::$CHRONICLE_LATEST_VERSION" - echo "::set-output name=GORELEASER::$GORELEASER_LATEST_VERSION" - echo "::set-output name=GOSIMPORTS::$GOSIMPORTS_LATEST_VERSION" - echo "::set-output name=YAJSV::$YAJSV_LATEST_VERSION" - echo "::set-output name=COSIGN::$COSIGN_LATEST_VERSION" + echo "GOLANGCILINT=$GOLANGCILINT_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "BOUNCER=$BOUNCER_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "CHRONICLE=$CHRONICLE_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "GORELEASER=$GORELEASER_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "GOSIMPORTS=$GOSIMPORTS_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "YAJSV=$YAJSV_LATEST_VERSION" >> $GITHUB_OUTPUT + echo "COSIGN=$COSIGN_LATEST_VERSION" >> $GITHUB_OUTPUT id: latest-versions - uses: tibdex/github-app-token@v1