Skip to content

Commit 63aaae3

Browse files
committed
Fix certificates workflows
1 parent 472217b commit 63aaae3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/check-certificates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ jobs:
2828
- name: Set certificates path environment variable
2929
run: |
3030
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
31-
echo "FILES=\\\"$(ls -m ${{ github.workspace }} | sed 's/, /\\",\\"/')\\\"" >> $GITHUB_ENV
31+
echo "FILES=\\\"$(ls -m ${{ github.workspace }}/certs | xargs | sed 's/, /","/g')\\\"" >> $GITHUB_ENV
3232
3333
- name: Get files list
3434
id: get-files
3535
run: |
36-
JSON=$(echo "[${{ join(env.FILES) }}]" | jq -c '[{"cert_file": .[]}]')
37-
echo "::set-output name=certificates::{\"include\": $JSON }"
36+
JSON=$(echo "[\"${{ join(env.FILES) }}\"]" | jq -c '{"cert_file": .}')
37+
echo "::set-output name=certificates::$JSON"
3838
3939
check-certificates:
4040
# This workflow would fail in forks that don't have the certificate secrets defined
4141
if: github.repository == 'arduino/FirmwareUpdater'
4242
runs-on: ubuntu-latest
43+
needs: get-certificates-list
4344

4445
strategy:
4546
fail-fast: false
46-
4747
matrix: ${{fromJSON(needs.get-certificates-list.outputs.certificates)}}
4848

4949
steps:

.github/workflows/check-notarization-certificates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check for issues with signing certificates
1+
name: Check for issues with notarization certificates
22

33
on:
44
schedule:

0 commit comments

Comments
 (0)