Skip to content

Commit

Permalink
Branch name fix (#2037)
Browse files Browse the repository at this point in the history
* Fix syntax errors and add origin

* Undo SHA changes and find branch from release event

* fix if statement
  • Loading branch information
sukhpalp authored Jul 17, 2024
1 parent 38dd53e commit c0fda7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
environment: PROD

env:
branch-name: ${{ github.event_name == 'release' && github.ref_name || github.event.release.target_commitish }}
branch-name: ${{ github.event_name == 'release' && github.event.release.target_commitish || github.ref_name }}

outputs:
tag-value: ${{ steps.get-release-tag.outputs.tag-value }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
environment: TEST

env:
branch-name: ${{ github.event_name == 'release' && github.ref_name || github.event.release.target_commitish }}
branch-name: ${{ github.event_name == 'release' && github.event.release.target_commitish || github.ref_name }}

outputs:
tag-value: ${{ steps.get-release-tag.outputs.tag-value }}
Expand Down

0 comments on commit c0fda7f

Please sign in to comment.