Make trivial adjustments to comments in "Check Certificates" workflow

No functional difference, and neither is necessarily superior, but this is how it is in the "template", and so it must be
here as well.
This commit is contained in:
per1234 2021-08-15 02:33:56 -07:00
parent 289f07f187
commit b84b6c921d

View File

@ -9,13 +9,13 @@ on:
paths: paths:
- ".github/workflows/check-certificates.ya?ml" - ".github/workflows/check-certificates.ya?ml"
schedule: schedule:
# run every 10 hours # Run every 10 hours.
- cron: "0 */10 * * *" - cron: "0 */10 * * *"
workflow_dispatch: workflow_dispatch:
repository_dispatch: repository_dispatch:
env: env:
# Begin notifications when there are less than this many days remaining before expiration # Begin notifications when there are less than this many days remaining before expiration.
EXPIRATION_WARNING_PERIOD: 30 EXPIRATION_WARNING_PERIOD: 30
jobs: jobs:
@ -32,9 +32,10 @@ jobs:
matrix: matrix:
certificate: certificate:
- identifier: macOS signing certificate # Text used to identify the certificate in notifications # Additional certificate definitions can be added to this list.
certificate-secret: APPLE_SIGNING_CERTIFICATE_P12 # The name of the secret that contains the certificate - identifier: macOS signing certificate # Text used to identify certificate in notifications.
password-secret: KEYCHAIN_PASSWORD # The name of the secret that contains the certificate password certificate-secret: APPLE_SIGNING_CERTIFICATE_P12 # Name of the secret that contains the certificate.
password-secret: KEYCHAIN_PASSWORD # Name of the secret that contains the certificate password.
- identifier: Windows signing certificate - identifier: Windows signing certificate
certificate-secret: WINDOWS_SIGNING_CERTIFICATE_PFX certificate-secret: WINDOWS_SIGNING_CERTIFICATE_PFX
password-secret: WINDOWS_SIGNING_CERTIFICATE_PASSWORD password-secret: WINDOWS_SIGNING_CERTIFICATE_PASSWORD
@ -42,7 +43,7 @@ jobs:
steps: steps:
- name: Set certificate path environment variable - name: Set certificate path environment variable
run: | run: |
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable # See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
echo "CERTIFICATE_PATH=${{ runner.temp }}/certificate.p12" >> "$GITHUB_ENV" echo "CERTIFICATE_PATH=${{ runner.temp }}/certificate.p12" >> "$GITHUB_ENV"
- name: Decode certificate - name: Decode certificate
@ -64,7 +65,6 @@ jobs:
exit 1 exit 1
) )
# See: https://github.com/rtCamp/action-slack-notify
- name: Slack notification of certificate verification failure - name: Slack notification of certificate verification failure
if: failure() if: failure()
uses: rtCamp/action-slack-notify@v2.1.0 uses: rtCamp/action-slack-notify@v2.1.0
@ -104,7 +104,7 @@ jobs:
DAYS_BEFORE_EXPIRATION="$((($(date --utc --date="$EXPIRATION_DATE" +%s) - $(date --utc +%s)) / 60 / 60 / 24))" DAYS_BEFORE_EXPIRATION="$((($(date --utc --date="$EXPIRATION_DATE" +%s) - $(date --utc +%s)) / 60 / 60 / 24))"
# Display the expiration information in the log # Display the expiration information in the log.
echo "Certificate expiration date: $EXPIRATION_DATE" echo "Certificate expiration date: $EXPIRATION_DATE"
echo "Days remaining before expiration: $DAYS_BEFORE_EXPIRATION" echo "Days remaining before expiration: $DAYS_BEFORE_EXPIRATION"
@ -119,7 +119,7 @@ jobs:
fi fi
- name: Slack notification of pending certificate expiration - name: Slack notification of pending certificate expiration
# Don't send spurious expiration notification if verification fails # Don't send spurious expiration notification if verification fails.
if: failure() && steps.check-expiration.outcome == 'failure' if: failure() && steps.check-expiration.outcome == 'failure'
uses: rtCamp/action-slack-notify@v2.1.0 uses: rtCamp/action-slack-notify@v2.1.0
env: env: