From dc83228e0c43050f872bc36614726ab05a0f0eef Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Mon, 1 Mar 2021 14:25:58 +0100 Subject: [PATCH] Added change log file Added GitHub action to check if change log was modified. --- .github/workflows/check-changelog.yml | 24 ++++++++++++++++++++++++ .github/workflows/pull-request.json | 10 ++++++++++ CHANGELOG.md | 8 ++++++++ pull-request.json | 10 ++++++++++ 4 files changed, 52 insertions(+) create mode 100644 .github/workflows/check-changelog.yml create mode 100644 .github/workflows/pull-request.json create mode 100644 CHANGELOG.md create mode 100644 pull-request.json diff --git a/.github/workflows/check-changelog.yml b/.github/workflows/check-changelog.yml new file mode 100644 index 00000000..31b4c6bd --- /dev/null +++ b/.github/workflows/check-changelog.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/pull-request.json b/.github/workflows/pull-request.json new file mode 100644 index 00000000..724560d1 --- /dev/null +++ b/.github/workflows/pull-request.json @@ -0,0 +1,10 @@ +{ + "pull_request": { + "head": { + "ref": "CeetronSolutions:added-smart-node-selector" + }, + "base": { + "ref": "master" + } + } +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..574cf979 --- /dev/null +++ b/CHANGELOG.md @@ -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 diff --git a/pull-request.json b/pull-request.json new file mode 100644 index 00000000..96b727c7 --- /dev/null +++ b/pull-request.json @@ -0,0 +1,10 @@ +{ + "pull_request": { + "head": { + "ref": "refs/heads/added-changelog-and-action" + }, + "base": { + "ref": "refs/heads/master" + } + } +} \ No newline at end of file