Skip to content

Commit

Permalink
Added change log file
Browse files Browse the repository at this point in the history
Added GitHub action to check if change log was modified.
  • Loading branch information
rubenthoms committed Mar 1, 2021
1 parent 20ef34e commit dc83228
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: check changelog

on:
pull_request:
branches:
- master

jobs:
check-changelog:
if: "!contains(github.event.head_commit.message, '[skip changelog]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 📖 Verify changelog updates
uses: dorny/paths-filter@v2
id: changed_files
with:
filters: |
changelog:
- 'CHANGELOG.md'
- name: 📖 Let job fail if changelog not updated
if: steps.changed_files.outputs.changelog == 'false'
run: |
exit 1
10 changes: 10 additions & 0 deletions .github/workflows/pull-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pull_request": {
"head": {
"ref": "CeetronSolutions:added-smart-node-selector"
},
"base": {
"ref": "master"
}
}
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [UNRELEASED] - YYYY-MM-DD
### Fixed
10 changes: 10 additions & 0 deletions pull-request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"pull_request": {
"head": {
"ref": "refs/heads/added-changelog-and-action"
},
"base": {
"ref": "refs/heads/master"
}
}
}

0 comments on commit dc83228

Please sign in to comment.