mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: sync changes (#3156)
* fix: sync changes * fix: sync changes * fix: sync changes updated
This commit is contained in:
parent
b7e2f1e57a
commit
f03a9a6de8
16
.github/workflows/create-sync-pr.yml
vendored
16
.github/workflows/create-sync-pr.yml
vendored
@ -3,7 +3,7 @@ name: Create Sync Action
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- develop # Change this to preview
|
||||
- preview
|
||||
types:
|
||||
- closed
|
||||
env:
|
||||
@ -33,24 +33,14 @@ jobs:
|
||||
sudo apt update
|
||||
sudo apt install gh -y
|
||||
|
||||
- name: Create Pull Request
|
||||
- name: Push Changes to Target Repo
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
run: |
|
||||
TARGET_REPO="${{ secrets.SYNC_TARGET_REPO_NAME }}"
|
||||
TARGET_BRANCH="${{ secrets.SYNC_TARGET_BRANCH_NAME }}"
|
||||
TARGET_BASE_BRANCH="${{ secrets.SYNC_TARGET_BASE_BRANCH_NAME }}"
|
||||
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}"
|
||||
PR_TITLE="${{secrets.SYNC_PR_TITLE}}"
|
||||
|
||||
git checkout $SOURCE_BRANCH
|
||||
git remote add target-origin "https://$GH_TOKEN@github.com/$TARGET_REPO.git"
|
||||
git push target-origin $SOURCE_BRANCH:$TARGET_BRANCH
|
||||
|
||||
|
||||
gh pr create \
|
||||
--base $TARGET_BASE_BRANCH \
|
||||
--head $TARGET_BRANCH \
|
||||
--title "sync changes" \
|
||||
--body "sync changes" \
|
||||
--repo $TARGET_REPO
|
||||
git push target-origin $SOURCE_BRANCH:$TARGET_BRANCH
|
Loading…
Reference in New Issue
Block a user