-
Notifications
You must be signed in to change notification settings - Fork 168
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
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.