From another answer I know how to run an action if an update is pushed to (a specific path in) a certain branch. The answer also implies how to run an action on any update in a specific branch.
However, what I would like is to trigger an update
- either a push to any file/folder in branch A
- or a push to a specific file in branch B
I have tried the following, but that throws a syntax error (because it seems there can only be one push entry):
on:
push:
branches:
- translation-files
push:
branches:
- main
paths:
- .github/workflows/translation-updates-to-main-repo.yml
Any idea if such combination would be possible, and if so: how? (If not, I'll probably have to just accept to manually initiate the run in case I update this action workflow.)