Skip to content

Commit 5a4ddcc

Browse files
committed
ci: Update GitHub workflows to fetch tags and use input versions
- Update GitHub workflows to fetch tags during checkout - Upgrade asdf-vm/actions install to version v3 in build workflow
1 parent ac133b3 commit 5a4ddcc

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
fetch-tags: true
2830
- uses: asdf-vm/actions/install@v3
2931
- run: make install
3032
- run: make lint

.github/workflows/fix-release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v4
28+
with:
29+
fetch-tags: true
30+
ref: ${{ inputs.version }}
2831
- uses: asdf-vm/actions/install@v3
2932
- run: make publish-package
3033

@@ -38,6 +41,9 @@ jobs:
3841

3942
steps:
4043
- uses: actions/checkout@v4
44+
with:
45+
fetch-tags: true
46+
ref: ${{ inputs.version }}
4147
- uses: docker/setup-qemu-action@v3
4248
- uses: docker/setup-buildx-action@v3
4349
- run: make publish-image

.github/workflows/publish-latest-image.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626

2727
steps:
2828
- uses: actions/checkout@v4
29+
with:
30+
fetch-tags: true
2931
- uses: docker/setup-qemu-action@v3
3032
- uses: docker/setup-buildx-action@v3
3133
- run: make publish-image

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737

3838
steps:
3939
- uses: actions/checkout@v4
40+
with:
41+
fetch-tags: true
4042
- uses: asdf-vm/actions/install@v3
4143
- run: make publish-package
4244

@@ -54,6 +56,8 @@ jobs:
5456

5557
steps:
5658
- uses: actions/checkout@v4
59+
with:
60+
fetch-tags: true
5761
- uses: docker/setup-qemu-action@v3
5862
- uses: docker/setup-buildx-action@v3
5963
- run: make publish-image

0 commit comments

Comments
 (0)