forked from github/plane
fix: sync changes (#3152)
This commit is contained in:
parent
08425c9614
commit
74b141eea2
4
.github/workflows/create-sync-pr.yml
vendored
4
.github/workflows/create-sync-pr.yml
vendored
@ -41,15 +41,15 @@ jobs:
|
|||||||
TARGET_BRANCH="${{ secrets.SYNC_TARGET_BRANCH_NAME }}"
|
TARGET_BRANCH="${{ secrets.SYNC_TARGET_BRANCH_NAME }}"
|
||||||
TARGET_BASE_BRANCH="${{ secrets.SYNC_TARGET_BASE_BRANCH_NAME }}"
|
TARGET_BASE_BRANCH="${{ secrets.SYNC_TARGET_BASE_BRANCH_NAME }}"
|
||||||
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}"
|
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}"
|
||||||
|
PR_TITLE="${{secrets.SYNC_PR_TITLE}}"
|
||||||
|
|
||||||
git checkout $SOURCE_BRANCH
|
git checkout $SOURCE_BRANCH
|
||||||
git remote add target-origin "https://$GH_TOKEN@github.com/$TARGET_REPO.git"
|
git remote add target-origin "https://$GH_TOKEN@github.com/$TARGET_REPO.git"
|
||||||
git push target-origin $SOURCE_BRANCH:$TARGET_BRANCH
|
git push target-origin $SOURCE_BRANCH:$TARGET_BRANCH
|
||||||
|
|
||||||
PR_TITLE=${{secrets.SYNC_PR_TITLE}}
|
|
||||||
|
|
||||||
gh pr create \
|
gh pr create \
|
||||||
--base $TARGET_BASE_BRANCH \
|
--base $TARGET_BASE_BRANCH \
|
||||||
--head $TARGET_BRANCH \
|
--head $TARGET_BRANCH \
|
||||||
--title "${PR_TITLE}" \
|
--title $PR_TITLE \
|
||||||
--repo $TARGET_REPO
|
--repo $TARGET_REPO
|
||||||
|
Loading…
Reference in New Issue
Block a user