From aa4b91f2832ad0ec8d6a41e4506c2ff56c12d877 Mon Sep 17 00:00:00 2001 From: Nicolas Savoire Date: Mon, 3 Jun 2024 10:19:57 +0000 Subject: [PATCH] fixup! Move dev tag on pre-release --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00e910a..8f75036 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -144,16 +144,15 @@ jobs: run: | tar czf otel-profiling-agent-${RELEASE_VERSION}-aarch64.tar.gz -C agent-aarch64 . tar czf otel-profiling-agent-${RELEASE_VERSION}-x86_64.tar.gz -C agent-x86_64 . - - name: Update dev tag + - name: Delete previous dev tag uses: actions/github-script@v7 with: script: | - github.rest.git.updateRef({ + github.rest.git.deleteRef({ owner: context.repo.owner, repo: context.repo.repo, - ref: 'tags/v${{ env.RELEASE_VERSION }}', - sha: context.sha - }); + ref: 'tags/${{ env.RELEASE_VERSION }}', + }).catch(); - name: Create pre-release uses: ncipollo/release-action@v1 with: