Skip to content

Commit 76a9efe

Browse files
Merge pull request #83 from Tompage1994/changelog_pr
Create a PR for changelog on release
2 parents 010d1f4 + f4da1cc commit 76a9efe

File tree

5 files changed

+46
-19
lines changed

5 files changed

+46
-19
lines changed

.github/workflow-config/release.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,6 @@
4141
chdir: "{{ repo_base_dir }}"
4242
tags: publish
4343

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-
5944
- name: remove galaxy.yml
6045
file:
6146
path: "{{ repo_base_dir }}/galaxy.yml"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

.github/workflows/galaxy-release.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,26 @@ jobs:
3333
-e collection_repo=https://github.com/${{ github.repository }}
3434
--skip-tags=install,cleanup
3535

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
3839
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
collections/*
22
!collections/requirements.yml
3+
galaxy.yml
4+
*.tar.gz

changelogs/fragments/changelogs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- Changelog release cycle

0 commit comments

Comments
 (0)