Skip to content

Commit

Permalink
docs: Create dev_to_qa_code_sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh-daryapurkar authored May 17, 2024
1 parent f6e69c3 commit fece5b5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dev_to_qa_code_sync.yml
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

0 comments on commit fece5b5

Please sign in to comment.