Skip to content

Commit

Permalink
ci(tagpr): Run tagpr on main branch (#13)
Browse files Browse the repository at this point in the history
Manually open a PR from dev to main.
  • Loading branch information
5ouma committed Mar 15, 2024
1 parent ac24d68 commit 2d01a13
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/branch-delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: ❌ Branch Delete

on:
pull_request:
types:
- closed

jobs:
Delete-Branch:
runs-on: Ubuntu-Latest

steps:
- name: ❌ Delete Branch
if: ${{ github.head_ref != 'dev'}}
uses: SvanBoxel/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:

steps:
- name: 🚫 Base Branch is wrong
if: ${{ github.base_ref == 'main' && github.head_ref != 'dev' && !startsWith(github.base_ref, 'tagpr-from-') }}
run: echo "Base branch should be \`dev\`." && return 1
if: ${{ github.base_ref == 'main' && github.head_ref != 'dev' }}
run: echo "Base branch should be \`dev\`." && exit 1
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: 🚀 Release
on:
push:
branches:
- "dev"
- "main"

permissions:
contents: write
pull-requests: write

jobs:
Expand Down

0 comments on commit 2d01a13

Please sign in to comment.