Skip to content

Commit e8667d5

Browse files
committed
Simplify size deltas report job conditional
The previous condition is necessary in repositories where the "Run workflows from fork pull requests" setting is enabled and the "Send write tokens to workflows from fork pull requests" setting is disabled, explained in more detail here: https://github.com/arduino/report-size-deltas#run-from-the-same-workflow-as-the-arduinocompile-sketches-action However, this repository does not have the "Run workflows from fork pull requests" setting enabled, so the extra condition is superflous and only makes the workflow more difficult to understand and maintain.
1 parent a3f947a commit e8667d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/compile-examples.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ jobs:
108108

109109
report-size-deltas:
110110
needs: compile-test
111-
# Only run the job when the workflow is triggered by a pull request from this repository (because arduino/report-size-deltas requires write permissions)
112-
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
111+
if: github.event_name == 'pull_request'
113112
runs-on: ubuntu-latest
114113
steps:
115114
- name: Download sketches reports artifact

0 commit comments

Comments
 (0)