mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
WORKFLOW: fixing version extrator - fix2
This commit is contained in:
parent
4e81b3b8ee
commit
20789a3afa
4
.github/workflows/cooker-selfhosted.yml
vendored
4
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -64,8 +64,8 @@ jobs:
|
||||||
# if the branch is coming from a PR the tag should be manually built
|
# if the branch is coming from a PR the tag should be manually built
|
||||||
- name: "Generate version tag"
|
- name: "Generate version tag"
|
||||||
run: |
|
run: |
|
||||||
/bin/bash automation_tools/version_extractor.sh
|
source automation_tools/version_extractor.sh
|
||||||
echo "MANIFEST_VERSION=$($fetch_manifest_version)" >> $GITHUB_ENV
|
echo "MANIFEST_VERSION=$(fetch_manifest_version)" >> $GITHUB_ENV
|
||||||
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=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/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')
|
||||||
|
|
Loading…
Reference in a new issue