Skip to content

Commit

Permalink
CI: enable CHANGELOG generation on push/PR
Browse files Browse the repository at this point in the history
When a pull-request is issued against the main branch, build the
changelog automatically so that it is kept up to date with on-going
changes.
  • Loading branch information
ThomasAdam committed Nov 30, 2020
1 parent a440aa0 commit b5dab7b
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: FVWM3 CI

on: [ push, pull_request, create ]

on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -14,6 +18,37 @@ jobs:
- name: Build Package
run: 'docker build -t fvwm3 .'

changelog:
name: Update Changelog
runs-on: ubuntu-20.04
needs: build
steps:
- name: Checkout code
if: github.event.pull_request.merged == 'true'
uses: actions/checkout@v2
with:
ref: master
- name: Update CHANGELOG
if: github.event.pull_request.merged == 'true'
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
issues: true
issuesWoLabels: false
pullRequests: true
prWoLabels: false
author: true
unreleased: true
- name: Commit CHANGELOG
if: github.event.pull_request.merged == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: Fvwm Automation
commit_user_email: [email protected]
commit_author: Fvwm Automation <[email protected]>
commit_message: '[AUTO]: update CHANGELOG'
file_pattern: CHANGELOG.md

notification:
runs-on: ubuntu-20.04
name: notifications
Expand Down

0 comments on commit b5dab7b

Please sign in to comment.