mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
WORKFLOW: fixing the source branch fetch - try #4 [skip ci]
This commit is contained in:
parent
90958a36e7
commit
577ccc3552
|
@ -64,7 +64,7 @@ jobs:
|
|||
run: |
|
||||
if [[ "$BRANCH_NAME" == 'refs/'* ]]; then
|
||||
pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}')
|
||||
source_branch=$(curl -s "https://api.github.com/repos/$repo_owner/$repo_name/pulls/$pr_number" | jq -r '.head.ref')
|
||||
source_branch=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/pulls/$pr_number" | jq -r '.head.ref')
|
||||
source_branch=${source_branch//\//-}
|
||||
echo "[DEBUG] source branch is: $source_branch"
|
||||
echo "TAG=PR-$pr_number-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV
|
||||
|
|
Loading…
Reference in a new issue