Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test new way to store output #746

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
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
Loading