Skip to content

Commit c68cd78

Browse files
committed
🐛 fix re-tag job
Signed-off-by: Lukas Burgholzer <[email protected]>
1 parent 26bf50c commit c68cd78

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ on:
55
branches: main
66
types: [published]
77
workflow_dispatch:
8-
inputs:
9-
tag:
10-
description: "Which tag to update to"
11-
default: "v1"
12-
required: true
138

149
jobs:
1510
re-tag:
@@ -18,12 +13,12 @@ jobs:
1813
- uses: actions/checkout@v3
1914
with:
2015
fetch-depth: 0
21-
ref: "main"
16+
ref: main
2217
- name: update tag
2318
run: |
2419
git config user.name 'github-actions'
2520
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
26-
git tag --delete ${{ inputs.tag }} || true
27-
git push --delete origin ${{ inputs.tag }} || true
28-
git tag -a ${{ inputs.tag }} -m '🔖 Re-tag ${{ inputs.tag }}'
29-
git push origin ${{ inputs.tag }}
21+
git tag --delete v1 || true
22+
git push --delete origin v1 || true
23+
git tag -a v1 -m '🔖 Re-tag v1'
24+
git push origin v1

0 commit comments

Comments
 (0)