Skip to content

Commit 43c4f7c

Browse files
committed
Fix certificates workflow
1 parent d2c2b3d commit 43c4f7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/check-certificates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: github.repository == 'arduino/FirmwareUpdater'
2020
runs-on: ubuntu-latest
2121
outputs:
22-
certificates: ${{ steps.get-certificates.outputs.certificates }}
22+
certificates: ${{ steps.get-files.outputs.certificates }}
2323

2424
steps:
2525
- name: checkout
@@ -28,12 +28,12 @@ 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 }}/certs | xargs | sed 's/, /","/g')\\\"" >> $GITHUB_ENV
31+
echo "FILES=\\\"$(ls -md ${{ 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": .}')
36+
JSON=$(echo "[${{ join(env.FILES) }}]" | jq -c '{"cert_file": .}')
3737
echo "::set-output name=certificates::$JSON"
3838
3939
check-certificates:
@@ -74,7 +74,7 @@ jobs:
7474
echo "Certificate expiration date: $EXPIRATION_DATE"
7575
echo "Days remaining before expiration: $DAYS_BEFORE_EXPIRATION"
7676
77-
echo "::set-output name=days::$DAYS_BEFORE_EXPIRATION_LIST"
77+
echo "::set-output name=days::$DAYS_BEFORE_EXPIRATION"
7878
7979
- name: Check if expiration notification period has been reached
8080
id: check-expiration

0 commit comments

Comments
 (0)