From aeee8d04fb5ac198648a135432aca1eec06667d3 Mon Sep 17 00:00:00 2001 From: Marc-Christian Date: Tue, 26 Nov 2024 12:13:50 +0100 Subject: [PATCH] Create a tag after each successful merge to master --- .github/workflows/pull-request.closed.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pull-request.closed.yml b/.github/workflows/pull-request.closed.yml index e10e416..d904e05 100644 --- a/.github/workflows/pull-request.closed.yml +++ b/.github/workflows/pull-request.closed.yml @@ -62,3 +62,14 @@ jobs: with: run: mvn clean install -Dmaven.repo.local=./.m2 -Declipse.p2.mirrors=false + - name: Create tag + uses: actions/github-script@v5 + with: + script: | + github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: 'refs/tags/${{ steps.semver.outputs.patch }}', + sha: context.sha + }) +