From 17af99ed20a74715dd1d25a01de0b3038c736dbf Mon Sep 17 00:00:00 2001 From: "F.Tibor" Date: Thu, 13 Aug 2026 13:36:04 +0200 Subject: [PATCH] Add github Ci action for tagging every merged PR --- .github/workflows/pr-tag.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pr-tag.yaml diff --git a/.github/workflows/pr-tag.yaml b/.github/workflows/pr-tag.yaml new file mode 100644 index 00000000..d1085851 --- /dev/null +++ b/.github/workflows/pr-tag.yaml @@ -0,0 +1,24 @@ +name: Create Tag on Merge + +on: + pull_request: + types: [closed] + +jobs: + tag: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: main + + - name: Create and push tag + run: | + TAG_NAME="v$(date +%Y.%m.%d.%H%M%S)" + git config user.name "github-actions" + git config user.email "github-actions@github.com" + git tag $TAG_NAME + git push origin $TAG_NAME + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}