Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down