From 871686d28c88a3cf81e6b50f27cc403d7f86f781 Mon Sep 17 00:00:00 2001 From: Oleksandr Khodos Date: Mon, 20 Nov 2023 15:19:19 +0200 Subject: [PATCH] Remove tag before creating a new one --- .github/workflows/github-nightly.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/github-nightly.yaml b/.github/workflows/github-nightly.yaml index a57c2b1c3af..8613f1a15ec 100644 --- a/.github/workflows/github-nightly.yaml +++ b/.github/workflows/github-nightly.yaml @@ -23,6 +23,15 @@ jobs: uses: actions/checkout@v2 with: ref: 'pluto-cmake' + - name: Remove tag + uses: actions/github-script@v5 + with: + script: | + github.git.deleteRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: "tags/nightly" + }) - name: Create tag uses: actions/github-script@v5 with: