Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/pr-tag.yaml
Original file line number Diff line number Diff line change
@@ -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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to specify this?

steps:
- uses: actions/checkout@v4
with:
ref: main

- name: Create and push tag
run: |
TAG_NAME="v$(date +%Y.%m.%d.%H%M%S)"

@nettle nettle Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not good idea I think...
Tag as a version number is good, tag as date is not much better than commit hash.

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 }}
Loading