From ffa55b6d37621aa7185dfc4e71f4e60b79e1ac5e Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sun, 21 Apr 2024 10:23:14 +0200 Subject: [PATCH 1/2] test new way to store output Reason: Because "::set-output" is deprecated --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c77e61ec..ee55901f4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -371,6 +371,33 @@ jobs: path: build/release/*.AppImage name: GittyupAppImage + testing_version_write: + # https://github.com/marvinpinto/actions/issues/177 + needs: [flatpak, build] + runs-on: ubuntu-latest # does not matter which + # Map a step output to a job output + outputs: + version: ${{ steps.Retrieve version.outputs.VERSION }} + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + + # version is exported from cmake to file + - name: Retrieve version + run: | + echo "VERSION=$(cat artifacts/Gittyup-VERSION/Version.txt)" >> "$GITHUB_OUTPUT" + id: version + + testing_version_read: + needs: testing_version_write + runs-on: ubuntu-latest + steps: + - env: + VERSION: ${{needs.testing_version_write.outputs.version}} + run: echo "$VERSION" + publish: # https://github.com/marvinpinto/actions/issues/177 needs: [flatpak, build] From a1761109345740876b5652cd79d528f3d673ffc3 Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Sun, 21 Apr 2024 10:30:11 +0200 Subject: [PATCH 2/2] no space allowed --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee55901f4..a74c7a945 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -377,7 +377,7 @@ jobs: runs-on: ubuntu-latest # does not matter which # Map a step output to a job output outputs: - version: ${{ steps.Retrieve version.outputs.VERSION }} + version: ${{ steps.RetrieveVersion.outputs.VERSION }} steps: - name: Download artifacts uses: actions/download-artifact@v3 @@ -385,7 +385,7 @@ jobs: path: artifacts # version is exported from cmake to file - - name: Retrieve version + - name: RetrieveVersion run: | echo "VERSION=$(cat artifacts/Gittyup-VERSION/Version.txt)" >> "$GITHUB_OUTPUT" id: version @@ -415,7 +415,7 @@ jobs: path: artifacts # version is exported from cmake to file - - name: Retrieve version + - name: RetrieveVersion run: | echo "::set-output name=VERSION::$(cat artifacts/Gittyup-VERSION/Version.txt)" id: version