Skip to content

Commit

Permalink
Merge pull request #40 from catenax-ng/feature/TRI-854-fix-branch-syn…
Browse files Browse the repository at this point in the history
…c-action

feat(workflows):[TRI-854] Add fetch origin
  • Loading branch information
ds-jhartmann authored Nov 29, 2022
2 parents 9cd8390 + 1bfd738 commit 1124289
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/synch-env-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: "Sync main to IRS-Env"

on:
push:
branches: main
branches:
- main

jobs:
sync-branches:
Expand All @@ -19,7 +20,8 @@ jobs:
run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/main
git fetch origin
git merge origin/main -m "Merge remote-tracking branch 'origin/main' into helm-environments" --allow-unrelated-histories
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1124289

Please sign in to comment.