File tree 1 file changed +8
-2
lines changed
actions/commit_pr_and_merge
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 47
47
echo "changes_exist=true" >> $GITHUB_OUTPUT
48
48
fi
49
49
50
+ - name : Generate random number for branch
51
+ id : random-number
52
+ shell : bash
53
+ run : |
54
+ echo "num=${RANDOM}" >> $GITHUB_OUTPUT
55
+
50
56
- name : Commit to new branch
51
57
uses : EndBug/add-and-commit@v9
52
58
if : steps.changes.outputs.changes_exist == 'true'
55
61
message : ' [CI Pipeline] ${{ inputs.message }}'
56
62
author_name : Release Workflow
57
63
58
- new_branch : ci-${{ github.sha }}
64
+ new_branch : ' ci-${{ github.sha }}-${{ steps.random-number.outputs.num }} '
59
65
add : ${{ inputs.add }}
60
66
61
67
- name : Create PR
68
74
owner: context.repo.owner,
69
75
repo: context.repo.repo,
70
76
title: '[CI Pipeline] ${{ inputs.message }}',
71
- head: 'ci-${{ github.sha }}',
77
+ head: 'ci-${{ github.sha }}-${{ steps.random-number.outputs.num }} ',
72
78
base: '${{ inputs.base_branch == '' && github.ref_name || inputs.base_branch }}',
73
79
body: '[CI Pipeline] Automated update'
74
80
})).data;
You can’t perform that action at this time.
0 commit comments