generated from pricefx/pricefx-eds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Create dev_to_qa_code_sync.yml
- Loading branch information
1 parent
f6e69c3
commit fece5b5
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: DEV to QA Code Sync | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
syncNow: | ||
description: 'Sync Now' | ||
required: false | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Configure Git identity | ||
run: | | ||
git config user.email "actions@github.com" | ||
git config user.name "Github Actions" | ||
- name: Fetch latest changes from pricefx-eds | ||
run: | | ||
git remote add pricefx-eds https://github.com/pricefx/pricefx-eds | ||
git fetch pricefx-eds main | ||
- name: Merge changes excluding fstab.yaml | ||
run: | | ||
git checkout main | ||
git merge --no-ff --no-edit pricefx-eds/main --strategy-option=ours --allow-unrelated-histories | ||
git rm --cached fstab.yaml | ||
git commit -m "Sync main branch from pricefx-eds, excluding fstab.yaml" | ||
- name: Push changes to pricefx-eds-qa-temp | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }} | ||
branch: main |