@@ -19,17 +19,10 @@ jobs:
1919 uses : actions/checkout@v5
2020 with :
2121 fetch-depth : 2
22- - name : ' Get Previous tag'
23- id : previoustag
24- uses : " WyriHaximus/github-action-get-previous-tag@v1"
25- with :
26- fallback : 9.9.9.9
2722
2823 - name : Check if 'version' has changed in galaxy.yml
2924 id : check-galaxy-version
3025 shell : bash
31- env :
32- current_version : ${{ steps.previoustag.outputs.tag }}
3326 run : |
3427 compare_semver() {
3528 version_test=(${1//./ })
4639 return 1
4740 }
4841 set -x
49- galaxy_version=$(git diff HEAD~ HEAD -- galaxy.yml | grep 'version:' || true | awk '{ print $2}')
42+ current_version=$(git diff HEAD~ HEAD -- galaxy.yml | grep '\-version:' | awk '{ print $2}' || true)
43+ galaxy_version=$(git diff HEAD~ HEAD -- galaxy.yml | grep '+version:' | awk '{ print $2}' || true)
5044 if [ -z "$galaxy_version" ]; then
5145 echo "new_version=false" >> $GITHUB_OUTPUT
5246 elif $(compare_semver "$galaxy_version" "$current_version"); then
5953 name : release tests
6054 uses : ./.github/workflows/collection-tests.yml
6155 needs : check_version_change
62- if : (needs.check_version_change.outputs.new_version == true) && (github.ref_name == 'main')
56+ if : (needs.check_version_change.outputs.new_version == ' true' ) && (github.ref_name == 'main')
6357 with :
6458 distros : " ['debian12', 'debian11', 'ubuntu2204', 'ubuntu2404']"
6559 nc_versions : " ['latest', 'nc31', 'nc30']"
@@ -68,13 +62,17 @@ jobs:
6862 name : normal tests
6963 uses : ./.github/workflows/collection-tests.yml
7064 needs : check_version_change
71- if : (needs.check_version_change.outputs.new_version != true) || (github.ref_name != 'main')
65+ if : (needs.check_version_change.outputs.new_version != ' true' ) || (github.ref_name != 'main')
7266
7367 tag_release :
7468 name : new-tag
7569 runs-on : ubuntu-latest
7670 needs : large_collection_tests
7771 steps :
72+ - name : Check out the repository
73+ uses : actions/checkout@v5
74+ with :
75+ fetch-depth : 2
7876 - name : Detect and tag new version
7977 id : check-version
8078 uses : salsify/action-detect-and-tag-new-version@v2
0 commit comments