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

Use multiple gh run download commands #3584

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Jan 17, 2025

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:

accepts at most 1 arg(s), received 3

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

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.13/Katello 4.15 (EL9 only)
  • Foreman 3.12/Katello 4.14 (Satellite 6.16)
  • Foreman 3.11/Katello 4.13 (orcharhino 6.11 on EL8 only; orcharhino 7.0 on EL8+EL9)
  • Foreman 3.10/Katello 4.12
  • Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8/6.9/6.10)
  • Foreman 3.8/Katello 4.10
  • Foreman 3.7/Katello 4.9 (Satellite 6.14)
  • We do not accept PRs for Foreman older than 3.7.

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)")
@maximiliankolb maximiliankolb merged commit 313e77e into theforeman:master Jan 17, 2025
8 checks passed
@ekohl ekohl deleted the fix-previews branch January 17, 2025 10:30
@maximiliankolb
Copy link
Contributor

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
Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#3587 tries that.

ekohl added a commit to ekohl/foreman-documentation that referenced this pull request Jan 17, 2025
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)")
maximiliankolb pushed a commit that referenced this pull request Jan 17, 2025
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 (#3579)")
Fixes: 313e77e ("Use multiple gh run download commands (#3584)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants