-
Notifications
You must be signed in to change notification settings - Fork 95
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
Use multiple gh run download commands #3584
Conversation
In 242dde2 I tried to combine multiple downloads into a single command because from the man page made me think that. In practice it says: > accepts at most 1 arg(s), received 3 This splits it back in to 3 separate commands as it previously was. Fixes: 242dde2 ("Use gh run download in previews (theforeman#3579)")
https://github.com/theforeman/foreman-documentation/actions/runs/12826749320/job/35767304239 According to the help output of gh 2.51.0, the syntatx is correct. I am out of ideas. @ekohl |
@@ -45,7 +45,10 @@ jobs: | |||
run: echo "PR_DATA=$(cat ./pr.json)" >> $GITHUB_ENV | |||
|
|||
- name: Download other artifacts | |||
run: gh run download {{ github.event.worfklow_run.id }} -n 'foreman-docs-html-${{ fromJSON(env.PR_DATA).branch_name }}' -n foreman-docs-html-base -n foreman-docs-web-master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm blind and I think this should be ${{ github.event.worfklow_run.id }}
. Then you can probably still download multiple artifacts at the same time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#3587 tries that.
In 242dde2 I forgot to add $ to the variable, so it was taking it literally. This is something I tried to fix in 313e77e but didn't. Fixes: 242dde2 ("Use gh run download in previews (theforeman#3579)") Fixes: 313e77e ("Use multiple gh run download commands (theforeman#3584)")
What changes are you introducing?
In 242dde2 I tried to combine multiple downloads into a single command because from the man page made me think that. In practice it says:
This splits it back in to 3 separate commands as it previously was.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
Becaue I broke things in #3579.
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
I'm sorry.
Checklists
Please cherry-pick my commits into: