Commit 149b3a0
ci: fix PR branch pull step on stable pushes
On workflow_dispatch event, pr-number also carry the name of the
branch instead of the PR number when the branch isn't associated with
any PR. Such example can be found on stable branch workflow-dispatch :
https://github.com/cilium/cilium/actions/runs/23629031538/job/68824091132
In order to avoid error on the PR research with git CLI, we check
when the context-ref equals the pr-number. Knowing it's a case where the
branch isn't associated with any PR, we then use the context-ref as a
base branch to carry on the workflow.
Signed-off-by: Antony Reynaud <antony.reynaud@isovalent.com>1 parent 95ce3ca commit 149b3a0
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
306 | 310 | | |
307 | 311 | | |
308 | 312 | | |
| |||
0 commit comments