Skip to content

Commit

Permalink
workflows: Fix PR deployment action
Browse files Browse the repository at this point in the history
Fix PR deployment action by use the head_ref for checkout action in
order to grab the PR base branch.

Signed-off-by: Gabriel Mocanu <gabi.mocanu98@gmail.com>
  • Loading branch information
gabrielmocanu committed Oct 3, 2023
1 parent 55852bc commit 3b71e8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pr-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@v3
with:
path: ./repo
ref: ${{ github.head_ref }}

- run: |
cd repo
REF=$(echo ${{ github.event.number }} | sed 's/\//\\\//g')
Expand Down

0 comments on commit 3b71e8a

Please sign in to comment.