This PR is not big enough to have a changelog, so I added the "no changelog" label, and re-ran the workflow. It ran the check, and failed again. Because, apparently, this line does not do what I thought it would do:
It appears that the values carried by github.event.pull_request.labels.*.name are from the time of PR creation. Adding a label later will not update that list.
There's a possibly working method to gather current labels are suggested in this StackOverflow thread:
Consider https://github.com/fabric-testbed/fabrictestbed-extensions/pull/148: our little check for changelog updates failed on this PR.
This PR is not big enough to have a changelog, so I added the "no changelog" label, and re-ran the workflow. It ran the check, and failed again. Because, apparently, this line does not do what I thought it would do:
https://github.com/fabric-testbed/fabrictestbed-extensions/blob/0665998dbc58fa36e75d2355c78112aa532e32df/.github/workflows/checks.yml#L49
It appears that the values carried by
github.event.pull_request.labels.*.name
are from the time of PR creation. Adding a label later will not update that list.There's a possibly working method to gather current labels are suggested in this StackOverflow thread: