Skip to content

Commit

Permalink
Passing branch name to checkout step
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJMiller committed Jul 17, 2024
1 parent c51e7c4 commit ed870bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/aws-cloud-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ jobs:

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
run: echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
outputs:
branch_name: ${{ steps.create-branch.outputs.branch_name}}

- uses: actions/checkout@v4
with:
repository: perfectsense/brightspot-github-actions-workflows
ref: ${{ steps.extract_branch.outputs.branch }}
ref: ${{ steps.extract_branch.outputs.branch_name }}
path: ./brightspot

- name: Get Tag Version
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/gcp-cloud-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ jobs:

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
run: echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

outputs:
branch_name: ${{ steps.create-branch.outputs.branch_name}}

- uses: actions/checkout@v4
with:
repository: perfectsense/brightspot-github-actions-workflows
ref: ${{ steps.extract_branch.outputs.branch }}
ref: ${{ steps.extract_branch.outputs.branch_name }}
path: ./brightspot

- name: Get Tag Version
Expand Down

0 comments on commit ed870bd

Please sign in to comment.