File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
fetch-depth : 0
23
23
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 }}"
25
31
- name : Set up Python
26
32
uses : actions/setup-python@v4
27
33
with :
38
44
run : |
39
45
git config --global --add user.name "Renku Bot"
40
46
git config --global --add user.email "[email protected] "
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 }}"
48
47
- name : Merge PRs
49
48
id : merge_prs
50
49
env :
63
62
if git merge --no-edit "origin/${branch_arr[0]}"; then
64
63
pr_body="$pr_body\n- #${branch_arr[1]}"
65
64
else
65
+ git merge --abort
66
+ git clean -fdx
67
+ git reset --hard
66
68
failed+=(${branch_arr[1]})
67
69
fi
68
70
done
78
80
git add -A
79
81
git commit -m "update lock file" --no-verify
80
82
git status
81
- git push
83
+ git push origin "${{ inputs.branch_name }}"
82
84
echo "pr_body=$pr_body" >> $GITHUB_OUTPUT
83
85
- name : Create Pull Request
84
86
uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments