-
Notifications
You must be signed in to change notification settings - Fork 541
32 lines (28 loc) · 1013 Bytes
/
Copy pathcommunity-sync-pr.yml
File metadata and controls
32 lines (28 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Open Community sync pull request
on:
push:
branches:
- automation/community-sync
permissions:
contents: read
pull-requests: write
concurrency:
group: community-sync-pr
cancel-in-progress: true
jobs:
open-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Open or refresh the Community sync pull request
env:
GH_TOKEN: ${{ github.token }}
run: |
pull_number=$(gh pr list --head automation/community-sync --base main --state open --json number --jq '.[0].number // empty')
if [ -z "$pull_number" ]; then
gh pr create \
--base main \
--head automation/community-sync \
--title "Sync Community package from ThreeUI" \
--body "Automated Community-only synchronization from the private ThreeUI main branch. Review the public boundary, inferred semantic-version bump, and generated package diff before merging."
fi