Added a missing checkout step for changelog assertion. (#3481)

This commit is contained in:
Michał Wawrzyniec Urbańczyk 2022-05-25 11:38:40 +02:00 committed by GitHub
parent 4918ccb5a3
commit 42d82bd8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,10 @@ jobs:
- Linux
- engine
steps:
- name: Checking out the repository
uses: actions/checkout@v3
with:
clean: false
- id: changed_files
run: "git fetch\nlist=`git diff --name-only origin/develop HEAD | tr '\\n' ' '`\necho $list\necho \"::set-output name=list::'$list'\""
- run: "if [[ ${{ contains(steps.changed_files.outputs.list,'CHANGELOG.md') || contains(github.event.head_commit.message,'[ci no changelog needed]') || contains(github.event.pull_request.body,'[ci no changelog needed]') }} == false ]]; then exit 1; fi"