Skip to content

Commit

Permalink
chore: release and sync pr manual merge (#116)
Browse files Browse the repository at this point in the history
# Ticket 🎫

This closes #114.

# Description 📖
Updates Github actions for manual merge of release and sync PRs. 🔄
  • Loading branch information
velramiir authored Nov 4, 2024
1 parent c186576 commit e85b070
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/manage-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- main
- release
- 'sync/*'
pull_request_review:
types:
- submitted
- edited

jobs:
manage-pr:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr-after-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
CR_PAT: ${{ secrets.CR_PAT }}
with:
RELEASED_FROM_MAIN: ${{ github.event.pull_request.head == 'main' }}
RELEASED_FROM_MAIN: "${{ github.event.pull_request.head.ref == 'main' }}"
SERVICE_TYPE: node
18 changes: 18 additions & 0 deletions .github/workflows/sync-pr-after-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Sync PR After Merge

on:
pull_request:
branches:
- 'sync/*'
types:
- closed

jobs:
sync-pr-after-merge:
name: Create Release
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'sync(hotfix)')
uses: dot-base/.github/.github/workflows/sync-pr-after-merge.yml@main
secrets:
GH_BOT_PAT: ${{ secrets.GH_BOT_PAT }}
with:
SYNC_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}

0 comments on commit e85b070

Please sign in to comment.