Skip to content

Create pr-merged.yml #1

Create pr-merged.yml

Create pr-merged.yml #1

Workflow file for this run

name: Tag on PR Merge
on:
  pull_request:
    types: [closed]
jobs:
  tag-on-merge:
    if: github.event.pull_request.merged == true
    runs-on: self-hosted
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
- name: Set up Git

Check failure on line 15 in .github/workflows/pr-merged.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr-merged.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
        run: |
          git config user.name "github-actions"
          git config user.email "[email protected]"
      - name: Create tag
        run: |
          TAG_NAME="v$(date +'%Y.%m.%d.%H%M%S')"
          git tag $TAG_NAME
          git push origin $TAG_NAME