We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e96d7e + f1b3b04 commit 59e72c7Copy full SHA for 59e72c7
.github/workflows/deploy.yml
@@ -15,6 +15,8 @@ jobs:
15
steps:
16
- name: Checkout repository
17
uses: actions/checkout@v2
18
+ with:
19
+ fetch-depth: 0 # Fetch all history for all tags
20
21
- name: Read version from readme.txt
22
id: read_version
@@ -25,6 +27,7 @@ jobs:
25
27
- name: Get latest tag
26
28
id: get_latest_tag
29
run: |
30
+ git fetch --tags # Ensure all tags are fetched
31
LATEST_TAG=$(git tag -l --sort=-v:refname | head -n 1)
32
if [ -z "$LATEST_TAG" ]; then
33
echo "No tags found"
0 commit comments