-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
name: Sync stage -> production | ||
on: | ||
workflow_dispatch: | ||
permissions: | ||
# Needed to read branches. | ||
contents: read | ||
# Needed to create PR's. | ||
pull-requests: write | ||
jobs: | ||
sync-branches: | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
name: Syncing branches | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Opening pull request | ||
id: pull | ||
# Need master for LABELS option. | ||
uses: tretuna/sync-branches@master | ||
uses: jdtx0/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FROM_BRANCH: "stage" | ||
TO_BRANCH: "production" | ||
LABELS: '["automerge"]' | ||
PULL_REQUEST_AUTO_MERGE_METHOD: "merge" | ||
PULL_REQUEST_IS_DRAFT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
name: Sync master -> stage | ||
on: | ||
workflow_dispatch: | ||
permissions: | ||
# Needed to read branches. | ||
contents: read | ||
# Needed to create PR's. | ||
pull-requests: write | ||
jobs: | ||
sync-branches: | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
name: Syncing branches | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Opening pull request | ||
id: pull | ||
# Need master for LABELS option. | ||
uses: tretuna/sync-branches@master | ||
uses: jdtx0/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
FROM_BRANCH: "master" | ||
TO_BRANCH: "stage" | ||
LABELS: '["automerge"]' | ||
PULL_REQUEST_AUTO_MERGE_METHOD: "merge" | ||
PULL_REQUEST_IS_DRAFT: true |