-
Notifications
You must be signed in to change notification settings - Fork 175
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
CI GitHub pipeline (hotfix) update for fetching repo name #3084
CI GitHub pipeline (hotfix) update for fetching repo name #3084
Conversation
…actch action code for feature PR repo names
.github/workflows/pw_aws_ci.yaml
Outdated
repo={{ github.repository }} | ||
if [ "$pr_number" -eq "0" ]; then | ||
branch=${{ github.event.inputs.ref }} | ||
repo=${{ github.repository }} |
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 a little confused by the syntax used here with {{}}
and $
. Is this Jinja or is this specific syntax for GitHub workflows?
To retain consistency, I'm guessing that this should be
repo={{ github.repository }} | |
if [ "$pr_number" -eq "0" ]; then | |
branch=${{ github.event.inputs.ref }} | |
repo=${{ github.repository }} | |
repo=${{ github.repository }} | |
if [ "$pr_number" -eq "0" ]; then | |
branch=${{ github.event.inputs.ref }} |
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.
Yes ${{ gitsutff }} is specific GitHub syntax, and yes line 75 was a typo
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.
committing type suggestion
.github/workflows/pw_aws_ci.yaml
Outdated
repo={{ github.repository }} | ||
if [ "$pr_number" -eq "0" ]; then | ||
branch=${{ github.event.inputs.ref }} | ||
repo=${{ github.repository }} |
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.
Yes ${{ gitsutff }} is specific GitHub syntax, and yes line 75 was a typo
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.
Looks good!
) # Description<!-- This description will become the commit message for the PR. --> Simple bug fix to GitHub CI pipeline script for Parallel Works. Introduced a bug on its last update for setting the repo name in advance of running the GitHub CLI command for getting the repo owner and branch name of PRs. # Type of change - [x] Bug fix (fixes something broken) - [ ] New feature (adds functionality) - [ ] Maintenance (code refactor, clean-up, new CI test, etc.) # Change characteristics <!-- Choose YES or NO from each of the following and delete the other --> - Is this a breaking change (a change in existing functionality)? NO - Does this change require a documentation update? NO - Does this change require an update to any of the following submodules? # How has this been tested? Gets tested when update to default repo gets checked in. --------- Co-authored-by: Terry McGuinness <Terry.McGuinness@noaa.gov>
Description
Simple bug fix to GitHub CI pipeline script for Parallel Works.
Introduced a bug on its last update for setting the repo name in advance of running the GitHub CLI command for getting the repo owner and branch name of PRs.
Type of change
Change characteristics
How has this been tested?
Gets tested when update to default repo gets checked in.