From bca26ebf0a35fc8ac0832f15e9c30b3b4cddf550 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 17 Feb 2023 13:33:52 +0100 Subject: [PATCH] build: convert ::set-output to $GITHUB_OUTPUT Signed-off-by: Hidde Beydals --- .github/workflows/e2e-bootstrap.yaml | 2 +- .github/workflows/release.yaml | 14 +++++++------- .github/workflows/update.yaml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-bootstrap.yaml b/.github/workflows/e2e-bootstrap.yaml index 6484a88e..7c3076fb 100644 --- a/.github/workflows/e2e-bootstrap.yaml +++ b/.github/workflows/e2e-bootstrap.yaml @@ -48,7 +48,7 @@ jobs: COMMIT_SHA=$(git rev-parse HEAD) PSEUDO_RAND_SUFFIX=$(echo "${BRANCH_NAME}-${COMMIT_SHA}" | shasum | awk '{print $1}') TEST_REPO_NAME="${REPOSITORY_NAME}-${PSEUDO_RAND_SUFFIX}" - echo "::set-output name=test_repo_name::$TEST_REPO_NAME" + echo "test_repo_name=$TEST_REPO_NAME" >> $GITHUB_OUTPUT - name: bootstrap init run: | /tmp/flux bootstrap github --manifests ./manifests/install/ \ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 75cf6205..f417bc7f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -97,7 +97,7 @@ jobs: id: prep run: | VERSION=$(flux version --client | awk '{ print $NF }') - echo ::set-output name=VERSION::${VERSION} + echo "version=${VERSION}" >> $GITHUB_OUTPUT - name: Login to GHCR uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2 with: @@ -117,7 +117,7 @@ jobs: --export > ./ghcr.io/flux-system/gotk-components.yaml cd ./ghcr.io && flux push artifact \ - oci://ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} \ + oci://ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \ --path="./flux-system" \ --source=${{ github.repositoryUrl }} \ --revision="${{ github.ref_name }}@sha1:${{ github.sha }}" @@ -129,7 +129,7 @@ jobs: --export > ./docker.io/flux-system/gotk-components.yaml cd ./docker.io && flux push artifact \ - oci://docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} \ + oci://docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \ --path="./flux-system" \ --source=${{ github.repositoryUrl }} \ --revision="${{ github.ref_name }}@sha1:${{ github.sha }}" @@ -138,12 +138,12 @@ jobs: env: COSIGN_EXPERIMENTAL: 1 run: | - cosign sign ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} - cosign sign docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} + cosign sign ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} + cosign sign docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} - name: Tag manifests run: | - flux tag artifact oci://ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} \ + flux tag artifact oci://ghcr.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \ --tag latest - flux tag artifact oci://docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.VERSION }} \ + flux tag artifact oci://docker.io/fluxcd/flux-manifests:${{ steps.prep.outputs.version }} \ --tag latest diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 06a8a9b6..74c17bab 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -70,7 +70,7 @@ jobs: git diff # export PR_BODY for PR and commit - echo "::set-output name=pr_body::$PR_BODY" + echo "pr_body=$PR_BODY" >> $GITHUB_OUTPUT } - name: Create Pull Request