beets icon indicating copy to clipboard operation
beets copied to clipboard

Fix changelog workflow

Open snejus opened this issue 1 year ago • 2 comments

Use pull_request_target event for the changelog update reminder

See https://github.com/marketplace/actions/comment-pull-request#permissions for more details.

Additionally, refactor the workflow into a more canonical form utilising the tj-actions/changed-files GitHub action.

snejus avatar May 07 '24 15:05 snejus

So, I'm definitely not an expert on Github actions at all. At a superficial glance, this looks reasonable.

Is pulling in the tj-actions/changed-files action necessary to make this work independent of the source of the PR? Or would the old git diff solution also work?

wisp3rwind avatar May 08 '24 18:05 wisp3rwind

So, I'm definitely not an expert on Github actions at all. At a superficial glance, this looks reasonable.

Is pulling in the tj-actions/changed-files action necessary to make this work independent of the source of the PR? Or would the old git diff solution also work?

Nope - it's not necessary. That's just an extra nice to have

snejus avatar May 08 '24 19:05 snejus

I'm good to merge this if you're happy @snejus

Serene-Arc avatar Jun 14 '24 10:06 Serene-Arc

@Serene-Arc go ahead!

snejus avatar Jun 14 '24 10:06 snejus

I think this broke the changelog check. For example, from a fresh PR (#5303): https://github.com/beetbox/beets/actions/runs/9516482690:

Invalid workflow file: .github/workflows/changelog_reminder.yaml#L19 You have an error in your yaml syntax on line 19

I think YAML is unhappy with **.py, maybe it just needs to be double-quoted?

bal-e avatar Jun 14 '24 13:06 bal-e

Oh no, let me try and fix it!

snejus avatar Jun 14 '24 14:06 snejus

https://github.com/beetbox/beets/pull/5305 let's try our luck one more time

snejus avatar Jun 14 '24 15:06 snejus