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 e7073c9 commit d74057dCopy full SHA for d74057d
.github/workflows/release.yml
@@ -33,6 +33,22 @@ jobs:
33
- name: Checkout code
34
uses: actions/checkout@v4
35
36
+ - name: Delete existing tag (if any)
37
+ uses: actions/github-script@v7
38
+ with:
39
+ script: |
40
+ const tag = '${{ github.event.inputs.version }}';
41
+ try {
42
+ await github.git.deleteRef({
43
+ owner: context.repo.owner,
44
+ repo: context.repo.repo,
45
+ ref: `tags/${tag}`
46
+ });
47
+ console.log(`Deleted existing tag: ${tag}`);
48
+ } catch (e) {
49
+ console.log(`Tag ${tag} does not exist or already deleted.`);
50
+ }
51
+
52
# Step 2: Download the build artifact from your 'Build' workflow.
53
# This finds the latest successful run on the specified branch and downloads the artifact.
54
- name: Download artifact from build workflow
0 commit comments