Skip to content

Commit

Permalink
Update to action workflow pipeline in default repo for development (N…
Browse files Browse the repository at this point in the history
…OAA-EMC#3062)

# Description

Still did not have the repo value correct for when PR=0 and branch is
selected from the actions menu.
This is part of in place pipeline development with in authoritative
repo.
(_ergo no review necessary_)

# Type of change
- [x] Bug fix (fixes something broken)
- [ ] New feature (adds functionality)
- [ ] Maintenance (code refactor, clean-up, new CI test, etc.)

---------

Co-authored-by: Terry McGuinness <[email protected]>
  • Loading branch information
1 parent c667ffa commit 152bb45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pw_aws_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request Number (use 0 for non-PR)'
description: 'PR Number (use 0 for non-PR)'
required: true
default: '0'
os:
Expand Down Expand Up @@ -72,10 +72,9 @@ jobs:
id: get-branch
run: |
pr_number=${{ github.event.inputs.pr_number }}
repo=${{ github.repository }}
if [ "$pr_number" -eq "0" ]; then
branch=${{ github.event.inputs.ref }}
repo="{{ github.repository_owner }}/${{ github.repository }}"
repo=${{ github.repository }}
else
branch=$(gh pr view $pr_number --repo $repo --json headRefName --jq '.headRefName')
repo_owner=$(gh pr view $pr_number --repo $repo --json headRepositoryOwner --jq '.headRepositoryOwner.login')
Expand Down

0 comments on commit 152bb45

Please sign in to comment.