From 50a4fef1bf31ae3bc345608e58fac6b2d0f3cc84 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Thu, 2 May 2024 14:53:53 +0200 Subject: [PATCH] CI: Replace tag-script with action [why] To reduce the maintenance burden. Signed-off-by: Fini Jastrow --- .github/workflows/ci.yaml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e696464..c23c624 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -188,27 +188,10 @@ jobs: # Release part - name: Create tag if: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/tags/') && needs.check-for-new-cascadia.outputs.tag_exists != 'true' }} - uses: actions/github-script@v7 + uses: EndBug/latest-tag@latest with: - github-token: ${{ github.token }} - script: | - const tagName = "${{ needs.check-for-new-cascadia.outputs.tag_name }}"; - - const createdTag = await github.git.createTag({ - owner: context.repo.owner, - repo: context.repo.repo, - tag: tagName, - message: `Bump Delugia version to ${tagName}`, - object: context.sha, - type: "commit" - }) - - github.git.createRef({ - owner: context.repo.owner, - repo: context.repo.repo, - ref: `refs/tags/${tagName}`, - sha: createdTag.data.sha - }) + ref: ${{ needs.check-for-new-cascadia.outputs.tag_name }} + description: "Bump Delugia version to ${{ needs.check-for-new-cascadia.outputs.tag_name }}" - name: Get tag name id: get_tag_name if: ${{ startsWith(github.ref, 'refs/tags/') }}