From 8366529ec068d7327ce325cef4e9fbebfdff8347 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Sat, 5 Aug 2023 15:41:51 +0200 Subject: [PATCH] GH Actions: Updates to use environment file for outputs --- .github/workflows/build-and-publish.yml | 4 ++-- .github/workflows/maintenance-update.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index fbf88a8..69fd342 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -28,7 +28,7 @@ jobs: - uses: abatilo/actions-poetry@v2.3.0 - id: echo-version - run: echo "::set-output name=version::$(poetry version --short)" + run: echo "version=$(poetry version --short)" >> $GITHUB_OUTPUT - if: ${{ github.event_name == 'push' }} run: > @@ -102,7 +102,7 @@ jobs: type=pep440,pattern={{major}}.{{minor}},value=${{ env.VERSION }},enable=${{ env.PRERELEASE == 'false' }} - name: prepare push tag value id: push-tags-value - run: echo "::set-output name=tags::${{ steps.docker-metadata.outputs.tags }}" | tr "\n" " " | sed "s/${{ env.IMAGE_NAME }}://g" + run: echo "tags=${{ steps.docker-metadata.outputs.tags }}" | tr "\n" " " | sed "s/${{ env.IMAGE_NAME }}://g" >> $GITHUB_OUTPUT - name: install dependency for multi-platform builds run: | diff --git a/.github/workflows/maintenance-update.yml b/.github/workflows/maintenance-update.yml index 80d9cad..735f735 100644 --- a/.github/workflows/maintenance-update.yml +++ b/.github/workflows/maintenance-update.yml @@ -47,7 +47,7 @@ jobs: - id: bump run: | poetry version patch - echo "::set-output name=version::$(poetry version --short)" + echo "version=$(poetry version --short)" >> $GITHUB_OUTPUT - uses: stefanzweifel/git-auto-commit-action@v4 with: