mirror of https://github.com/status-im/consul.git
ci: Fix changelog-checker GHA workflow (#14842)
This commit is contained in:
parent
622804ad5b
commit
035e126fae
|
@ -25,11 +25,9 @@ jobs:
|
|||
fetch-depth: 0 # by default the checkout action doesn't checkout all branches
|
||||
- name: Check for changelog entry in diff
|
||||
run: |
|
||||
pull_request_base_main=$(expr "${{ github.event.pull_request.base.ref }}" = "main")
|
||||
|
||||
# check if there is a diff in the .changelog directory
|
||||
# for PRs against the main branch, the changelog file name should match the PR number
|
||||
if [ pull_request_base_main ]; then
|
||||
if [ "${{ github.event.pull_request.base.ref }}" = "${{ github.event.repository.default_branch }}" ]; then
|
||||
enforce_matching_pull_request_number="matching this PR number "
|
||||
changelog_file_path=".changelog/${{ github.event.pull_request.number }}.txt"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue