Skip to content

Commit 9de039b

Browse files
committed
pass secrets to reusable workflows
1 parent cfea7c1 commit 9de039b

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/build-boards.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ on:
66
platform:
77
required: true
88
type: string
9-
109
boards:
1110
required: true
1211
type: string
13-
1412
cp-version:
1513
required: true
1614
type: string
15+
secrets:
16+
AWS_ACCESS_KEY_ID:
17+
required: false
18+
AWS_SECRET_ACCESS_KEY:
19+
required: false
1720

1821
jobs:
1922
build:

.github/workflows/build-mpy-cross.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
cp-version:
77
required: true
88
type: string
9+
secrets:
10+
AWS_ACCESS_KEY_ID:
11+
required: false
12+
AWS_SECRET_ACCESS_KEY:
13+
required: false
914

1015
jobs:
1116
build:

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,14 @@ jobs:
9696
with:
9797
cp-version: ${{ needs.scheduler.outputs.cp-version }}
9898

99-
10099
mpy-cross:
101100
needs: scheduler
102101
if: needs.scheduler.outputs.build-boards == 'True'
103102
uses: ./.github/workflows/build-mpy-cross.yml
103+
secrets: inherit
104104
with:
105105
cp-version: ${{ needs.scheduler.outputs.cp-version }}
106106

107-
108107
mpy-cross-mac:
109108
runs-on: macos-11
110109
needs: scheduler
@@ -223,41 +222,41 @@ jobs:
223222
[ -z "$TWINE_USERNAME" ] || echo "Uploading dev release to PyPi"
224223
[ -z "$TWINE_USERNAME" ] || twine upload circuitpython-stubs/dist/*
225224
226-
227225
aarch:
228226
needs: [scheduler, mpy-cross, tests]
229227
if: ${{ needs.scheduler.outputs.boards-aarch != '[]' }}
230228
uses: ./.github/workflows/build-boards.yml
229+
secrets: inherit
231230
with:
232231
platform: aarch
233232
boards: ${{ needs.scheduler.outputs.boards-aarch }}
234233
cp-version: ${{ needs.scheduler.outputs.cp-version }}
235234

236-
237235
arm:
238236
needs: [scheduler, mpy-cross, tests]
239237
if: ${{ needs.scheduler.outputs.boards-arm != '[]' }}
240238
uses: ./.github/workflows/build-boards.yml
239+
secrets: inherit
241240
with:
242241
platform: arm
243242
boards: ${{ needs.scheduler.outputs.boards-arm }}
244243
cp-version: ${{ needs.scheduler.outputs.cp-version }}
245244

246-
247245
esp:
248246
needs: [scheduler, mpy-cross, tests]
249247
if: ${{ needs.scheduler.outputs.boards-esp != '[]' }}
250248
uses: ./.github/workflows/build-boards.yml
249+
secrets: inherit
251250
with:
252251
platform: esp
253252
boards: ${{ needs.scheduler.outputs.boards-esp }}
254253
cp-version: ${{ needs.scheduler.outputs.cp-version }}
255254

256-
257255
riscv:
258256
needs: [scheduler, mpy-cross, tests]
259257
if: ${{ needs.scheduler.outputs.boards-riscv != '[]' }}
260258
uses: ./.github/workflows/build-boards.yml
259+
secrets: inherit
261260
with:
262261
platform: riscv
263262
boards: ${{ needs.scheduler.outputs.boards-riscv }}
@@ -267,6 +266,7 @@ jobs:
267266
needs: [scheduler, mpy-cross, tests]
268267
if: ${{ needs.scheduler.outputs.boards-rpi != '[]' }}
269268
uses: ./.github/workflows/build-boards.yml
269+
secrets: inherit
270270
with:
271271
platform: arm
272272
boards: ${{ needs.scheduler.outputs.boards-rpi }}

0 commit comments

Comments
 (0)