Skip to content

Commit

Permalink
Merge branch 'develop' into feat-scale-core-service
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius authored May 8, 2023
2 parents ee521b3 + 1d16a82 commit f8983d3
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 180 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/combine-dependabot-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ jobs:
with:
fetch-depth: 0
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
ref: ${{ inputs.branch_name }}
ref: develop
- name: Setup local branch and merge tool
run: |
git checkout -b "${{ inputs.branch_name }}" || ( git checkout "${{ inputs.branch_name }}" && git branch -u "origin/${{ inputs.branch_name }}" && git pull && git merge develop)
echo "poetry.lock merge=ours" >> .git/info/attributes
git config merge.ours.driver true
git merge --no-edit "origin/${{ inputs.target_branch }}"
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -38,13 +44,6 @@ jobs:
run: |
git config --global --add user.name "Renku Bot"
git config --global --add user.email "[email protected]"
- name: Setup local branch and merge tool
run: |
git branch --track "${{ inputs.branch_name }}" "origin/${{ inputs.branch_name }}" || ( git checkout "${{ inputs.branch_name }}" && git branch -u "origin/${{ inputs.branch_name }}" )
git pull
echo "poetry.lock merge=ours" >> .git/info/attributes
git config merge.ours.driver true
git merge --no-edit "origin/${{ inputs.target_branch }}"
- name: Merge PRs
id: merge_prs
env:
Expand All @@ -63,6 +62,9 @@ jobs:
if git merge --no-edit "origin/${branch_arr[0]}"; then
pr_body="$pr_body\n- #${branch_arr[1]}"
else
git merge --abort
git clean -fdx
git reset --hard
failed+=(${branch_arr[1]})
fi
done
Expand All @@ -78,7 +80,7 @@ jobs:
git add -A
git commit -m "update lock file" --no-verify
git status
git push
git push origin "${{ inputs.branch_name }}"
echo "pr_body=$pr_body" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: actions/github-script@v6
Expand Down
Loading

0 comments on commit f8983d3

Please sign in to comment.