From ebe70f94469afc6c2c70cde0216cd08bb1dd3af3 Mon Sep 17 00:00:00 2001 From: morbalint Date: Mon, 4 Mar 2024 23:34:33 +0100 Subject: [PATCH] ci: chore: replace deprecated commit tagger step with github script --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ffb8c9..a013e5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,8 +162,13 @@ jobs: export DOCKER_IMAGE_ID=$(docker images ghcr.io/${{ github.repository_owner }}/kemkas:${GITHUB_SHA::8} --format "{{.ID}}") export DOCKER_IMAGE_ID=GHCR-$DOCKER_IMAGE_ID echo "DOCKER_IMAGE_ID=$DOCKER_IMAGE_ID" >> $GITHUB_ENV - - name: Tag commit - uses: tvdias/github-tagger@v0.0.1 + - name: Tag commit with docker image ID + uses: actions/github-script@v5 with: - repo-token: "${{ github.token }}" - tag: "${{ env.DOCKER_IMAGE_ID }}" + script: | + github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: "refs/tags/${{ env.DOCKER_IMAGE_ID }}", + sha: context.sha + }) \ No newline at end of file