1
0

Add pull request merge support to GitHub Actions

- Add pull_request trigger with closed type
- Add condition to run only when PR is merged or on push to main
- Enable deployment on both direct push and PR merge to main

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-18 16:05:46 +09:00
parent 2b954ec582
commit 8d6137ce67

View File

@@ -4,10 +4,15 @@ on:
push: push:
branches: branches:
- main - main
pull_request:
branches:
- main
types: [closed]
jobs: jobs:
build-deploy: build-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with: