Skip to content

Commit 829a0c6

Browse files
authored
Use authenticated API requests in "Compile Examples" CI workflow
The arduino/compile-sketches GitHub Actions action used in the "Compile Examples" workflow queries the GitHub API for the base ref of the pull request, which is used for the memory deltas determination. There were a couple workflow runs recently (1, 2) that failed due to rate limiting. Authenticated API requests are given a more generous API request allowance, so providing the action with the automatically generated GitHub access token should prevent this from happening again.
1 parent d92b39e commit 829a0c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: .github/workflows/compile-examples.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
- name: Compile examples
111111
uses: arduino/actions/libraries/compile-examples@master
112112
with:
113+
github-token: ${{ secrets.GITHUB_TOKEN }}
113114
fqbn: ${{ matrix.board.fqbn }}
114115
libraries: |
115116
- name: Adafruit MQTT Library
@@ -149,4 +150,4 @@ jobs:
149150
uses: actions/upload-artifact@v1
150151
with:
151152
name: size-deltas-reports
152-
path: size-deltas-reports
153+
path: size-deltas-reports

0 commit comments

Comments
 (0)