File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -33,21 +33,24 @@ jobs:
33
33
outputs :
34
34
sdk_versions : ${{ steps.get_sdk_versions.outputs.sdk_versions }}
35
35
steps :
36
- - name : Checkout repository
37
- uses : actions/checkout@v2
38
- with :
39
- ref : ${{ github.head_ref }}
40
- - name : Get Latest SDK versions
41
- id : get_sdk_versions
42
- run : |
43
- TAGS=$(git tag --list --sort=-version:refname "v.*" | head -n 4)
44
- if [ -z "$TAGS" ]; then
45
- echo "No tags found"
46
- exit 1
47
- fi
48
- echo "TAGS=$TAGS" >> $GITHUB_ENV
49
- echo "::set-output name=sdk_versions::$TAGS"
50
-
36
+ - name : Checkout repository
37
+ uses : actions/checkout@v2
38
+ with :
39
+ ref : ${{ github.event.repository.default_branch }}
40
+
41
+ - name : Fetch tags
42
+ run : git fetch --tags
43
+
44
+ - name : Get Latest SDK versions
45
+ id : get_sdk_versions
46
+ run : |
47
+ TAGS=$(git tag --list --sort=-version:refname "v.*" | head -n 4)
48
+ if [ -z "$TAGS" ]; then
49
+ echo "No tags found"
50
+ exit 1
51
+ fi
52
+ echo "TAGS=$TAGS" >> $GITHUB_ENV
53
+ echo "::set-output name=sdk_versions::$TAGS"
51
54
52
55
build :
53
56
needs : ['path-filter', 'get_sdk_versions']
You can’t perform that action at this time.
0 commit comments