Skip to content

Commit

Permalink
test Fetch Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Dec 6, 2023
1 parent 403aacb commit 2fab47c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Fetch Tags
run: git fetch --tags

- name: Get latest tag
id: get_tag
run: |
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v1.0.0")
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v1.4")
echo "Latest tag: $latest_tag"
echo "::set-output name=tag::$latest_tag"
Expand Down

0 comments on commit 2fab47c

Please sign in to comment.