Update
This commit is contained in:
@@ -33,31 +33,32 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create or update PR from staging → main
|
- name: Checkout auto-merge/staging-to-main
|
||||||
if: steps.check.outcome == 'success'
|
if: steps.check.outcome == 'success'
|
||||||
id: cpr
|
id: cpr
|
||||||
run: |
|
run: |
|
||||||
# Checkout staging branch
|
# Checkout staging branch
|
||||||
git checkout staging
|
git checkout staging
|
||||||
|
|
||||||
# Create a new branch for the PR
|
# Create a new branch for the PR
|
||||||
git checkout -b auto-merge/staging-to-main
|
git checkout -b auto-merge/staging-to-main
|
||||||
|
|
||||||
# Push the new branch to the remote
|
# Push the new branch to the remote
|
||||||
git push origin auto-merge/staging-to-main
|
git push origin auto-merge/staging-to-main
|
||||||
|
|
||||||
# Create the pull request using the GitHub Action
|
# Create the pull request using the GitHub Action
|
||||||
uses: peter-evans/create-pull-request@v4
|
- name: Create PR from staging → main
|
||||||
with:
|
uses: peter-evans/create-pull-request@v4
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
with:
|
||||||
commit-message: "chore: auto-merge staging into main"
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: auto-merge/staging-to-main
|
commit-message: "chore: auto-merge staging into main"
|
||||||
base: main
|
branch: auto-merge/staging-to-main
|
||||||
title: "Auto-merge staging into main"
|
base: main
|
||||||
body: |
|
title: "Auto-merge staging into main"
|
||||||
This PR was created automatically by GitHub Actions.
|
body: |
|
||||||
It merges the latest `staging` into `main`.
|
This PR was created automatically by GitHub Actions.
|
||||||
draft: false
|
It merges the latest `staging` into `main`.
|
||||||
|
draft: false
|
||||||
|
|
||||||
- name: Enable auto-merge on PR
|
- name: Enable auto-merge on PR
|
||||||
if: steps.cpr.outputs.pull-request-number != ''
|
if: steps.cpr.outputs.pull-request-number != ''
|
||||||
|
|||||||
Reference in New Issue
Block a user