File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19
19
if : github.repository == 'arduino/FirmwareUpdater'
20
20
runs-on : ubuntu-latest
21
21
outputs :
22
- certificates : ${{ steps.get-certificates .outputs.certificates }}
22
+ certificates : ${{ steps.get-files .outputs.certificates }}
23
23
24
24
steps :
25
25
- name : checkout
@@ -28,12 +28,12 @@ jobs:
28
28
- name : Set certificates path environment variable
29
29
run : |
30
30
# 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
32
32
33
33
- name : Get files list
34
34
id : get-files
35
35
run : |
36
- JSON=$(echo "[\" ${{ join(env.FILES) }}\" ]" | jq -c '{"cert_file": .}')
36
+ JSON=$(echo "[${{ join(env.FILES) }}]" | jq -c '{"cert_file": .}')
37
37
echo "::set-output name=certificates::$JSON"
38
38
39
39
check-certificates :
74
74
echo "Certificate expiration date: $EXPIRATION_DATE"
75
75
echo "Days remaining before expiration: $DAYS_BEFORE_EXPIRATION"
76
76
77
- echo "::set-output name=days::$DAYS_BEFORE_EXPIRATION_LIST "
77
+ echo "::set-output name=days::$DAYS_BEFORE_EXPIRATION "
78
78
79
79
- name : Check if expiration notification period has been reached
80
80
id : check-expiration
You can’t perform that action at this time.
0 commit comments