Skip to content

Commit 2dad3ef

Browse files
author
Val Brodsky
committed
Testing
1 parent 4d8765c commit 2dad3ef

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/python-package-develop.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,24 @@ jobs:
3333
outputs:
3434
sdk_versions: ${{ steps.get_sdk_versions.outputs.sdk_versions }}
3535
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"
5154
5255
build:
5356
needs: ['path-filter', 'get_sdk_versions']

0 commit comments

Comments
 (0)