mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
WORKFLOW: fixing version extrator
This commit is contained in:
parent
a5f0ae5ce9
commit
5d65c6e12a
3
.github/workflows/cooker-selfhosted.yml
vendored
3
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -64,7 +64,7 @@ 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: |
|
||||||
source automation_tools/version_extractor.sh
|
/bin/bash 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}')
|
||||||
|
@ -163,6 +163,7 @@ jobs:
|
||||||
|
|
||||||
- name: Rewrite Tag
|
- name: Rewrite Tag
|
||||||
run: |
|
run: |
|
||||||
|
git submodule deinit -f --all
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
if git rev-parse --verify "${{ env.TAG }}" >/dev/null 2>&1; then # if the tag exists
|
if git rev-parse --verify "${{ env.TAG }}" >/dev/null 2>&1; then # if the tag exists
|
||||||
git tag -d "${{ env.TAG }}" # remove it from local repo
|
git tag -d "${{ env.TAG }}" # remove it from local repo
|
||||||
|
|
1
.github/workflows/main-selfhosted.yml
vendored
1
.github/workflows/main-selfhosted.yml
vendored
|
@ -117,6 +117,7 @@ jobs:
|
||||||
|
|
||||||
- name: Rewrite Tag
|
- name: Rewrite Tag
|
||||||
run: |
|
run: |
|
||||||
|
git submodule deinit -f --all
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
if git rev-parse --verify "${{ env.REL_VER }}" >/dev/null 2>&1; then # if the tag exists
|
if git rev-parse --verify "${{ env.REL_VER }}" >/dev/null 2>&1; then # if the tag exists
|
||||||
git tag -d "${{ env.REL_VER }}" # remove it from local repo
|
git tag -d "${{ env.REL_VER }}" # remove it from local repo
|
||||||
|
|
Loading…
Reference in a new issue