From afc494982f446b04529683b3c5e951d6c27de377 Mon Sep 17 00:00:00 2001 From: Jnewbon <48688400+Jnewbon@users.noreply.github.com> Date: Sat, 11 Jul 2020 15:37:05 +0100 Subject: [PATCH] #6718 Added Github action --- .github/workflows/job-changelog-check.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/job-changelog-check.yml diff --git a/.github/workflows/job-changelog-check.yml b/.github/workflows/job-changelog-check.yml new file mode 100644 index 000000000..7507e2564 --- /dev/null +++ b/.github/workflows/job-changelog-check.yml @@ -0,0 +1,28 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: Changlog Updated +on: + pull_request: + +jobs: + label: + + runs-on: ubuntu-latest + steps: + - id: file_changes + uses: trilom/file-changes-action@v1.2.3 + with: + pr: ${{ steps.pr.outputs.results }} + - name: List files + run: | + echo ${{ steps.file_changes.outputs.files_modified}} + if [[ "${{ steps.file_changes.outputs.files_modified}}" == *"ChangLog"* ]] then + echo "Changlog has been updated" + else + echo "::error file=app.js,line=10,col=15::Changelog hasnt been updated" + fi