mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Merge branch 'cooker-0.8.0b' into feat/esde-3.0
This commit is contained in:
commit
91f39d4818
|
@ -64,7 +64,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ "$BRANCH_NAME" == 'refs/'* ]]; then
|
if [[ "$BRANCH_NAME" == 'refs/'* ]]; then
|
||||||
pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}')
|
pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}')
|
||||||
source_branch=$(git show "refs/pull/$pr_number/merge" --no-patch --format="%P" | cut -d' ' -f2 | cut -d'/' -f3)
|
source_branch=$(curl -s "https://api.github.com/repos/$repo_owner/$repo_name/pulls/$pr_number" | jq -r '.head.ref')
|
||||||
source_branch=${source_branch//\//-}
|
source_branch=${source_branch//\//-}
|
||||||
echo "[DEBUG] source branch is: $source_branch"
|
echo "[DEBUG] source branch is: $source_branch"
|
||||||
echo "TAG=PR-$pr_number-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV
|
echo "TAG=PR-$pr_number-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Reference in a new issue