diff --git a/.github/workflows/appimage10.yml b/.github/workflows/appimage10.yml index f42db1ac..e52d01e3 100644 --- a/.github/workflows/appimage10.yml +++ b/.github/workflows/appimage10.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 149 # enough to cover between tags - #fetch-tags: true # this should work see actions/checkout~issue#1471 + fetch-tags: true # this should work see actions/checkout~issue#1471 - name: Get the version id: get_version @@ -64,17 +64,7 @@ jobs: # Find the last tag (that does not match the current GITHUB_REF) echo GITHUB_REF=$GITHUB_REF echo GITHUB_SHA=$GITHUB_SHA - # GitHub CI is a shallow checkout by default (just the files needed to build) - # but we also want history back to next tag, see fetch-tags/fetch-depth actions/checkout~issue#1471 - if [[ "$GITHUB_REF" =~ ^refs/tags/ ]] - then - # remove only if ref of tag (to avoid conflict during fetch) - git update-ref -d $GITHUB_REF - echo git_update_ref_exitstatus=$? - fi set +e - git fetch --tags --prune --no-recurse-submodules --depth=149 origin +$GITHUB_SHA # fetch-tags: true # is broken - echo git_fetch_exitstatus=$? git_show_ref=$(git show-ref --hash $GITHUB_REF) # get tagcommit hash git_show_ref_exitstatus=$? echo git_show_ref_exitstatus=$git_show_ref_exitstatus diff --git a/.github/workflows/appimage7.yml b/.github/workflows/appimage7.yml index 90b789b9..a0a672b0 100644 --- a/.github/workflows/appimage7.yml +++ b/.github/workflows/appimage7.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 149 # enough to cover between tags - #fetch-tags: true # this should work see actions/checkout~issue#1471 + fetch-tags: true # this should work see actions/checkout~issue#1471 - name: Get the version id: get_version @@ -64,17 +64,7 @@ jobs: # Find the last tag (that does not match the current GITHUB_REF) echo GITHUB_REF=$GITHUB_REF echo GITHUB_SHA=$GITHUB_SHA - # GitHub CI is a shallow checkout by default (just the files needed to build) - # but we also want history back to next tag, see fetch-tags/fetch-depth actions/checkout~issue#1471 - if [[ "$GITHUB_REF" =~ ^refs/tags/ ]] - then - # remove only if ref of tag (to avoid conflict during fetch) - git update-ref -d $GITHUB_REF - echo git_update_ref_exitstatus=$? - fi set +e - git fetch --tags --prune --no-recurse-submodules --depth=149 origin +$GITHUB_SHA # fetch-tags: true # is broken - echo git_fetch_exitstatus=$? git_show_ref=$(git show-ref --hash $GITHUB_REF) # get tagcommit hash git_show_ref_exitstatus=$? echo git_show_ref_exitstatus=$git_show_ref_exitstatus diff --git a/.github/workflows/appimage8.yml b/.github/workflows/appimage8.yml index 37457c8a..63a1f2ec 100644 --- a/.github/workflows/appimage8.yml +++ b/.github/workflows/appimage8.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 149 # enough to cover between tags - #fetch-tags: true # this should work see actions/checkout~issue#1471 + fetch-tags: true # this should work see actions/checkout~issue#1471 - name: Get the version id: get_version @@ -64,17 +64,7 @@ jobs: # Find the last tag (that does not match the current GITHUB_REF) echo GITHUB_REF=$GITHUB_REF echo GITHUB_SHA=$GITHUB_SHA - # GitHub CI is a shallow checkout by default (just the files needed to build) - # but we also want history back to next tag, see fetch-tags/fetch-depth actions/checkout~issue#1471 - if [[ "$GITHUB_REF" =~ ^refs/tags/ ]] - then - # remove only if ref of tag (to avoid conflict during fetch) - git update-ref -d $GITHUB_REF - echo git_update_ref_exitstatus=$? - fi set +e - git fetch --tags --prune --no-recurse-submodules --depth=149 origin +$GITHUB_SHA # fetch-tags: true # is broken - echo git_fetch_exitstatus=$? git_show_ref=$(git show-ref --hash $GITHUB_REF) # get tagcommit hash git_show_ref_exitstatus=$? echo git_show_ref_exitstatus=$git_show_ref_exitstatus diff --git a/.github/workflows/appimage9.yml b/.github/workflows/appimage9.yml index 64bf56a9..d70b5a7b 100644 --- a/.github/workflows/appimage9.yml +++ b/.github/workflows/appimage9.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 149 # enough to cover between tags - #fetch-tags: true # this should work see actions/checkout~issue#1471 + fetch-tags: true # this should work see actions/checkout~issue#1471 - name: Get the version id: get_version @@ -64,17 +64,7 @@ jobs: # Find the last tag (that does not match the current GITHUB_REF) echo GITHUB_REF=$GITHUB_REF echo GITHUB_SHA=$GITHUB_SHA - # GitHub CI is a shallow checkout by default (just the files needed to build) - # but we also want history back to next tag, see fetch-tags/fetch-depth actions/checkout~issue#1471 - if [[ "$GITHUB_REF" =~ ^refs/tags/ ]] - then - # remove only if ref of tag (to avoid conflict during fetch) - git update-ref -d $GITHUB_REF - echo git_update_ref_exitstatus=$? - fi set +e - git fetch --tags --prune --no-recurse-submodules --depth=149 origin +$GITHUB_SHA # fetch-tags: true # is broken - echo git_fetch_exitstatus=$? git_show_ref=$(git show-ref --hash $GITHUB_REF) # get tagcommit hash git_show_ref_exitstatus=$? echo git_show_ref_exitstatus=$git_show_ref_exitstatus