Skip to content

Commit

Permalink
chore(merge): 10.0.x into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bonita-ci committed May 31, 2024
2 parents 9e1a104 + b3f1a05 commit 6564552
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/_reusable_update_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,27 @@ jobs:
merge-upstream:
needs: update-version
if: ${{ inputs.merge-upstream-ignoring-conflicts }}
uses: bonitasoft/github-workflows/.github/workflows/_reusable_merge_upstream.yml@main
with:
ignore-conflicts: true
secrets: inherit
runs-on: ubuntu-22.04
steps:
- name: Setup git
uses: bonitasoft/git-setup-action@v1
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}

- name: Determine upstream branch
id: upstream-branch
run: echo "ref=${{ fromJson(vars.SUPPORTED_BRANCHES).upstream-branch[github.ref_name] }}" >> $GITHUB_OUTPUT

- name: Checkout upstream branch
uses: actions/checkout@v4
with:
repository: bonitasoft/bonita-application-directory
ref: ${{ steps.upstream-branch.outputs.ref }}
fetch-depth: 0
token: ${{ secrets.BONITA_CI_PAT }}

- name: Merge upstream branch
run: |
git config merge.ours.driver true
git merge origin/${{ github.ref_name }} -X ours -m "chore(merge): ${{ github.ref_name }} into ${{ steps.upstream-branch.outputs.ref }}"
git push

0 comments on commit 6564552

Please sign in to comment.