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.
1 parent 85756f0 commit 14cce80Copy full SHA for 14cce80
.github/workflows/release.yml
@@ -12,7 +12,17 @@ jobs:
12
runs-on: ubuntu-latest
13
steps:
14
- uses: actions/checkout@v4
15
- name: Checkout code
+ with:
16
+ fetch-depth: 0 # make sure you have full history and tags
17
+ - name: Checkout tag if available
18
+ run: |
19
+ TAG=$(git tag --points-at HEAD)
20
+ if [ -n "$TAG" ]; then
21
+ echo "Tag found: $TAG. Checking out tag..."
22
+ git checkout "$TAG"
23
+ else
24
+ echo "No tag found on this commit."
25
+ fi
26
- name: Setup JDK
27
uses: actions/setup-java@v4
28
with:
0 commit comments