Skip to content

Commit

Permalink
Merge pull request #26 from opencrvs/my-test-2
Browse files Browse the repository at this point in the history
My test 2
  • Loading branch information
adskyiproger authored Feb 26, 2025
2 parents d12a4fc + a691cf2 commit 4435211
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,22 @@ jobs:
if git ls-remote --heads https://${{ secrets.MY_TOKEN }}@github.com/adskyiproger/poc-core-test-my.git "$BASE_BRANCH" | grep "$BASE_BRANCH"; then
echo "branch_exists=true" >> $GITHUB_ENV
else
echo "=============================================="
echo " 🚀 Branch $BASE_BRANCH doesn't exist in repository adskyiproger/poc-core-test-my"
echo " 🚪 Doing exit"
echo "=============================================="
echo "branch_exists=false" >> $GITHUB_ENV
fi
- name: Sync Fork
id: sync_fork
if: env.branch_exists == 'true'
env:
GH_TOKEN: ${{ secrets.MY_TOKEN }}
run: |
BASE_BRANCH=${{ github.event.pull_request.base.ref }}
gh repo sync adskyiproger/poc-core-test-my --branch ${BASE_BRANCH}
- name: Create PR in adskyiproger/poc-core-test-my
if: steps.sync_fork.outcome == 'failure'
run: echo "The 'sync_fork' step failed explicitly. Creating a PR in adskyiproger/poc-core-test-my"

0 comments on commit 4435211

Please sign in to comment.