Skip to content

Commit

Permalink
Merge pull request #83 from Tompage1994/changelog_pr
Browse files Browse the repository at this point in the history
Create a PR for changelog on release
  • Loading branch information
sean-m-sullivan authored Sep 10, 2020
2 parents 010d1f4 + f4da1cc commit 76a9efe
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 19 deletions.
15 changes: 0 additions & 15 deletions .github/workflow-config/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,6 @@
chdir: "{{ repo_base_dir }}"
tags: publish

- name: Set git config
shell:
cmd: "git config user.name 'redhat-cop-ci-bot' && git config user.email '[email protected]'"
chdir: "{{ repo_base_dir }}"

- name: push changelogs to devel
shell:
cmd: "git add changelogs CHANGELOG.rst && git commit -m 'add changelog {{ collection_version }}'"
chdir: "{{ repo_base_dir }}"

- name: git cleanup
command:
cmd: git reset --hard
tags: cleanup

- name: remove galaxy.yml
file:
path: "{{ repo_base_dir }}/galaxy.yml"
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/automerge-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Merge Bot

on:
pull_request:
types:
- labeled

jobs:
merge:
runs-on: ubuntu-latest
name: Merge
steps:
- name: Merge changelog automated PR
uses: squalrus/merge-bot@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
labels: changelog, automated pr
reviewers: false
26 changes: 22 additions & 4 deletions .github/workflows/galaxy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,26 @@ jobs:
-e collection_repo=https://github.com/${{ github.repository }}
--skip-tags=install,cleanup

- name: Push changes
uses: ad-m/github-push-action@master
- name: Create Pull Request
id: prcreate
uses: peter-evans/create-pull-request@v3
with:
branch: devel
github_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update changelog ${{ github.ref }}
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
base: devel
branch: changelog-patches
delete-branch: true
title: '[RELEASE] Update changelog ${{ github.ref }}'
body: |
Update changelog
- Updated with changelog for release ${{ github.ref }}
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
changelog
automated pr
draft: false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
collections/*
!collections/requirements.yml
galaxy.yml
*.tar.gz
3 changes: 3 additions & 0 deletions changelogs/fragments/changelogs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- Changelog release cycle

0 comments on commit 76a9efe

Please sign in to comment.