File tree Expand file tree Collapse file tree 5 files changed +46
-19
lines changed Expand file tree Collapse file tree 5 files changed +46
-19
lines changed Original file line number Diff line number Diff line change 41
41
chdir : " {{ repo_base_dir }}"
42
42
tags : publish
43
43
44
- - name : Set git config
45
- shell :
46
- cmd : " git config user.name 'redhat-cop-ci-bot' && git config user.email 'action@github.com'"
47
- chdir : " {{ repo_base_dir }}"
48
-
49
- - name : push changelogs to devel
50
- shell :
51
- cmd : " git add changelogs CHANGELOG.rst && git commit -m 'add changelog {{ collection_version }}'"
52
- chdir : " {{ repo_base_dir }}"
53
-
54
- - name : git cleanup
55
- command :
56
- cmd : git reset --hard
57
- tags : cleanup
58
-
59
44
- name : remove galaxy.yml
60
45
file :
61
46
path : " {{ repo_base_dir }}/galaxy.yml"
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Merge Bot
3
+
4
+ on :
5
+ pull_request :
6
+ types :
7
+ - labeled
8
+
9
+ jobs :
10
+ merge :
11
+ runs-on : ubuntu-latest
12
+ name : Merge
13
+ steps :
14
+ - name : Merge changelog automated PR
15
+ uses : squalrus/merge-bot@master
16
+ with :
17
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
+ labels : changelog, automated pr
19
+ reviewers : false
Original file line number Diff line number Diff line change 33
33
-e collection_repo=https://github.com/${{ github.repository }}
34
34
--skip-tags=install,cleanup
35
35
36
- - name : Push changes
37
- uses : ad-m/github-push-action@master
36
+ - name : Create Pull Request
37
+ id : prcreate
38
+ uses : peter-evans/create-pull-request@v3
38
39
with :
39
- branch : devel
40
- github_token : ${{ secrets.GITHUB_TOKEN }}
40
+ token : ${{ secrets.GITHUB_TOKEN }}
41
+ commit-message : Update changelog ${{ github.ref }}
42
+ committer : GitHub <noreply@github.com>
43
+ author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
44
+ signoff : false
45
+ base : devel
46
+ branch : changelog-patches
47
+ delete-branch : true
48
+ title : ' [RELEASE] Update changelog ${{ github.ref }}'
49
+ body : |
50
+ Update changelog
51
+ - Updated with changelog for release ${{ github.ref }}
52
+ - Auto-generated by [create-pull-request][1]
53
+
54
+ [1]: https://github.com/peter-evans/create-pull-request
55
+ labels : |
56
+ changelog
57
+ automated pr
58
+ draft : false
Original file line number Diff line number Diff line change 1
1
collections /*
2
2
! collections /requirements.yml
3
+ galaxy.yml
4
+ * .tar.gz
Original file line number Diff line number Diff line change
1
+ ---
2
+ minor_changes :
3
+ - Changelog release cycle
You can’t perform that action at this time.
0 commit comments