Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

only run CHANGELOG check when source files are modified #5287

Merged
merged 1 commit into from
Jun 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Check if source files have changed
run: |
git diff --name-only $(git merge-base origin/main HEAD) | grep '^allennlp/.*\.py$' && echo "source_files_changed=true" >> $GITHUB_ENV || echo "source_files_changed=false" >> $GITHUB_ENV

- name: Check that CHANGELOG has been updated
if: env.source_files_changed == 'true'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have hoped that you can put more complicated expressions here, but I guess not?

run: |
# If this step fails, this means you haven't updated the CHANGELOG.md
# file with notes on your contribution.
Expand Down