Timeline for How to run GitHub Actions workflows on pull request to default branch regardless of the name of the default branch?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 17, 2023 at 2:46 | answer | added | gardar | timeline score: 1 | |
| Nov 7, 2022 at 15:44 | comment | added | GuiFalourd | I don't think this solution works at the workflow level π | |
| Nov 7, 2022 at 14:23 | comment | added | LongYC |
@GuiFalourd, that's an interesting find, but somehow it's not documented on docs.github.com/en/developers/webhooks-and-events/events/…, yet it can be found on docs.github.com/en/rest/repos/repos. Anyway I went ahead to try with - ${{ github.event.repository.default_branch }} but only ending up with an error: Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.repository.default_branch.
|
|
| Nov 7, 2022 at 11:25 | review | Close votes | |||
| Nov 11, 2022 at 0:02 | |||||
| Nov 7, 2022 at 11:10 | comment | added | GuiFalourd | Does this answer your question? GitHub actions: default branch variable | |
| Nov 7, 2022 at 10:38 | history | asked | LongYC | CC BY-SA 4.0 | created from wizard |