-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: joyceliu <[email protected]>
- Loading branch information
joyceliu
committed
Sep 4, 2024
1 parent
0118c67
commit cfa37d3
Showing
1 changed file
with
2 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,19 +33,12 @@ jobs: | |
ref: feature-gitops | ||
path: feature-branch | ||
|
||
- name: Remove old feature directory | ||
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }} | ||
run: rm -rf feature | ||
|
||
- name: Sync feature branch to master/feature directory | ||
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }} | ||
run: | | ||
mkdir -p feature | ||
rm -rf feature && mkdir -p feature | ||
cp -r feature-branch/* feature/ | ||
git config --global user.name 'ks-ci-bot' | ||
git config --global user.email '[email protected]' | ||
git add feature/ | ||
git commit -m "Sync feature branch to master/feature directory" | ||
rm -rf feature-branch | ||
- name: Push changes and create PR | ||
if: ${{ steps.check_pr.outputs.pr_merged == 'true' }} | ||
|