File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 with :
2222 fetch-depth : 0
2323 token : " ${{ secrets.RENKUBOT_GITHUB_TOKEN }}"
24- ref : ${{ inputs.branch_name }}
24+ ref : develop
25+ - name : Setup local branch and merge tool
26+ run : |
27+ git checkout -b "${{ inputs.branch_name }}" || ( git checkout "${{ inputs.branch_name }}" && git branch -u "origin/${{ inputs.branch_name }}" && git pull && git merge develop)
28+ echo "poetry.lock merge=ours" >> .git/info/attributes
29+ git config merge.ours.driver true
30+ git merge --no-edit "origin/${{ inputs.target_branch }}"
2531 - name : Set up Python
2632 uses : actions/setup-python@v4
2733 with :
3844 run : |
3945 git config --global --add user.name "Renku Bot"
4046 git config --global --add user.email "renku@datascience.ch"
41- - name : Setup local branch and merge tool
42- run : |
43- git branch --track "${{ inputs.branch_name }}" "origin/${{ inputs.branch_name }}" || ( git checkout "${{ inputs.branch_name }}" && git branch -u "origin/${{ inputs.branch_name }}" )
44- git pull
45- echo "poetry.lock merge=ours" >> .git/info/attributes
46- git config merge.ours.driver true
47- git merge --no-edit "origin/${{ inputs.target_branch }}"
4847 - name : Merge PRs
4948 id : merge_prs
5049 env :
6362 if git merge --no-edit "origin/${branch_arr[0]}"; then
6463 pr_body="$pr_body\n- #${branch_arr[1]}"
6564 else
65+ git merge --abort
66+ git clean -fdx
67+ git reset --hard
6668 failed+=(${branch_arr[1]})
6769 fi
6870 done
7880 git add -A
7981 git commit -m "update lock file" --no-verify
8082 git status
81- git push
83+ git push origin "${{ inputs.branch_name }}"
8284 echo "pr_body=$pr_body" >> $GITHUB_OUTPUT
8385 - name : Create Pull Request
8486 uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments