Skip to content

Commit 999c7b4

Browse files
ci: simplify pr action
1 parent 5921f29 commit 999c7b4

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
name: Create PR to Main
1+
name: Create PR
22

33
on:
44
release:
55
types:
66
- published
77

8-
permissions:
9-
pull-requests: write
10-
contents: read
11-
128
jobs:
13-
create-pr-to-main:
14-
name: Build project and run CI checks
9+
create-pr:
10+
name: Create PR
1511
uses: fingerprintjs/dx-team-toolkit/.github/workflows/create-pr.yml@v1
1612
with:
17-
target_branch: test
13+
target_branch: ${{ github.event.release.prerelease && 'main' || 'test' }}
1814
tag_name: ${{ github.event.release.tag_name }}
1915
prerelease: ${{ github.event.release.prerelease }}

.github/workflows/sync-main-with-test.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)