Skip to content

Commit

Permalink
add output to pass on artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Oct 13, 2024
1 parent c1496c5 commit 0113131
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`
#optional retention-days: 1 to 90

outputs:
# saving this as output for following jobs to pick up
artifact_name: EdiromOnline_${{ steps.short-sha.outputs.sha }}.zip


xqunit:
name: Run XQSuite unit tests
Expand All @@ -58,7 +62,7 @@ jobs:
- name: Download artifact from previous job
uses: actions/download-artifact@v4
with:
name: EdiromOnline_${{ steps.short-sha.outputs.sha }}.zip
name: ${{ needs.build.outputs.artifact_name }}
path: xars
- name: debug
run: ls -laR ${{ github.workspace }}
Expand All @@ -78,7 +82,7 @@ jobs:

update-tag:
name: Update git development tag and Github release
needs: xqunit
needs: [build,xqunit]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -94,14 +98,15 @@ jobs:
- name: Download artifact from previous job
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GH_PAT }}
name: ${{ needs.build.outputs.artifact_name }}
path: xars

- name: Create dev-release
if: ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
uses: ncipollo/[email protected]
with:
allowUpdates: true
artifacts: ${{ github.workspace }}/Edirom-Online-*.xar
artifacts: ${{ github.workspace }}/xars/Edirom-Online-*.xar
commit: ${{ github.sha }}
name: "Development Build"
prerelease: true
Expand Down

0 comments on commit 0113131

Please sign in to comment.