Replace set-output with GITHUB_OUTPUT

Fixes: #685

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Daniel Holbach <daniel@weave.works>
This commit is contained in:
Daniel Holbach
2022-11-02 13:23:42 +01:00
parent bdd59a72f3
commit 0f2dff84cd
4 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Find current tag version
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: tags
- name: Setup GoReleaser

View File

@@ -83,7 +83,7 @@ jobs:
- name: Setup GoReleaser
run: make bootstrap-tools
- name: Find current tag version
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: tags
- name: Build image
run: VERSION="${{ steps.tags.outputs.sha_short }}" make image
@@ -124,7 +124,7 @@ jobs:
- name: Setup GoReleaser
run: make bootstrap-tools
- name: Find current tag version
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: tags
- name: Build artifacts
run: |

View File

@@ -28,7 +28,7 @@ jobs:
go-version-file: 'go.mod'
check-latest: true
- name: Find current tag version
run: echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: tags
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

View File

@@ -65,7 +65,7 @@ jobs:
- name: Setup GoReleaser
run: make bootstrap-tools
- name: Find current tag version
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
id: tags
- name: Build artifacts
run: VERSION="${{ steps.tags.outputs.sha_short }}" make image