Skip to content

Commit a24285f

Browse files
committed
tag checkout
1 parent 5058989 commit a24285f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/deploy_to_ghcr_custom_tag.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0 # Fetch all history for all tags and branches
22-
23-
- name: Checkout specific tag
24-
run: git checkout tags/v${{ github.event.inputs.tag }}
22+
ref: tags/v${{ github.event.inputs.tag }}
2523

2624
- name: Login to GitHub Container Registry
2725
uses: docker/login-action@v3
@@ -61,6 +59,10 @@ jobs:
6159
steps:
6260
- name: Checkout GitHub Action
6361
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0 # Fetch all history for all tags and branches
64+
ref: tags/v${{ github.event.inputs.tag }}
65+
6466

6567
- name: Login to GitHub Container Registry
6668
uses: docker/login-action@v3

0 commit comments

Comments
 (0)