Skip to content

Commit c7fc7bf

Browse files
committed
try getting output version_id into nice summary message
1 parent b77505e commit c7fc7bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/upload-pdf.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,22 @@ jobs:
4141

4242
- name: Create a draft snapshot on Zenodo Sandbox
4343
if: github.event_name == 'workflow_dispatch'
44+
id: zenodraft_sandbox
4445
env:
4546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4647
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
47-
uses: zenodraft/action@0.13.3
48+
uses: egpbos/zenodraft-action@output_version_id
4849
with:
4950
concept: 277497 # doesn't matter which it is, it is only for testing
5051
publish: false
5152
sandbox: true
5253
filenames: guide-nlesc.pdf
5354
metadata: .zenodo.json
5455

56+
- name: NICE OUTPUT TEST
57+
if: github.event_name == 'workflow_dispatch'
58+
run: echo "Review your draft and publish at https://sandbox.zenodo.org/uploads/${{ steps.zenodraft_sandbox.outputs.version_id }}" >> $GITHUB_STEP_SUMMARY
59+
5560
- name: Create a new draft snapshot in the Zenodo record
5661
if: github.event_name == 'release'
5762
env:

0 commit comments

Comments
 (0)