diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c77e61ec..a74c7a945 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.RetrieveVersion.outputs.VERSION }} + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + path: artifacts + + # version is exported from cmake to file + - name: RetrieveVersion + 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] @@ -388,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