Commit a9f1b9a
authored
fix: Updates how BASE_REF works (#636)
From our digital overlord:
In this updated workflow:
We've added a new step, "Set BASE_REF for PRs," that runs only for pull requests. It sets an output variable base_ref to origin/{0}, which should be the correct base reference in that context.
In the "Get Affected Workspaces" step, we now use this output variable (if it exists) as the argument to find-changes.sh. If the workflow is triggered by a push (or anything other than a pull request), the set_base_ref step will be skipped, and the condition will evaluate to github.event.before (the same behavior as in your release.yml workflow).
This approach ensures that find-changes.sh always receives a consistent and accurate base reference, making the process more reliable and easier to understand.1 parent a3be429 commit a9f1b9a
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
0 commit comments