Skip to content
Closed
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
4 changes: 4 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
- name: Get changed files
id: files
uses: Ana06/get-changed-files@v1.1
# this Action may throw the below error, e.g. when not properly rebased
# however, it still gets the modified files and we can continue
# Error: The head commit for this pull_request_target event is not ahead of the base commit.
continue-on-error: 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 think we should approach this differently, as this could hide other relevant errors. This check can be easily removed in the action (there is even a PR upstream, as jitterbit/get-changed-files@v1 behaves the same: jitterbit/get-changed-files#25). I personally try to rebase branches often (to avoid errors because not testing my changes with the latest code) and find this failure a nice reminder that I have to rebase. But as you said, it is not needed for the action to work. So, I can chery-pick the change in jitterbit/get-changed-files#25 and release Ana06/get-changed-files@v1.2.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

great if they fix it upstream, the arguments in the linked issue make sense. if the fix is ready soon I'm fine with that otherwise we can use this workaround to ease our development

Copy link
Member

Choose a reason for hiding this comment

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

I don't know if it will make it upstream. The reason why I released my own version is because the project didn't seem to be maintained. I have released Ana06/get-changed-files@v1.2 which includes the fix. We are already using a fork of upstream, so let use my new version and change it to upstream if they release a version which include the same fixes.

- name: check changelog updated
id: changelog_updated
env:
Expand Down