forked from LoopKit/LoopWorkspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check_certs workflow and Fastlane lane for Distribution certifica…
…te management. - Introduces a new GitHub Actions workflow check_certs.yml for certificate validation and renewal. - Adds a Fastlane lane check_and_renew_certificates to handle certificate checks, expiration warnings, and flag creation for automated renewal. - Updates create_certs.yml to respond to both workflow_dispatch and workflow_call triggers for compatibility with the new workflow. - Certificates are renewed if less than 7 days to expiry - Annotations added after nuke and create certs - Nuke certs only if ENABLE_NUKE_CERTS == 'true' - Output annotation if nuke_certs were skipped due to ENABLE_NUKE_CERTS != true check_certs.yml: use checkout@v4 Don't nuke certs in warning period, add optional vars.FORCE_NUKE_CERTS - Only emit warning for certs close to expiration, do not nuke valid certs. - Introduce optional repository variable FORCE_NUKE_CERTS - Nuke Certs if needed, and if the repository variable ENABLE_NUKE_CERTS is set to 'true', or if FORCE_NUKE_CERTS is set to 'true', which will always force certs to be nuked - Emit annotations for FORCE_NUKE_CERTS Require check_certs before building Checks if Distribution certificate is present and valid, optionally nukes and reates new certs if the repository variable ENABLE_NUKE_CERTS == 'true' Set error when no valid certs and ENABLE_NUKE_CERTS is not 'true'. Remove warnings about other apps from Fastfile, as these are displayed as annotations from check_certs.yml Annotation for valid certs Refine error annotations for Validate Fastlane Secrets - Include the possibility of missing signing of agreements in the check for "No code signing identity found" or "Could not install WWDR certificate". - Break up some long annotation strings into several messages - Add ❗️-emoji to emphasise the suggested actions to take Remove unused env Refactor GitHub Actions Workflows and Fastlane Configuration Details: Workflows: Removed the validate job dependency where unnecessary. Adjusted needs dependencies in check_alive_and_permissions, check_latest_from_upstream, and build jobs to optimize execution order. Consolidated redundant steps in check_certs.yml, reducing complexity. Enhanced clarity by explicitly listing required secrets and improving step naming. Added annotations for better debugging and user feedback during certificate operations. Fastlane Configuration: Changed match to disable forced certificate updates (force: false) and enabled verbose output. Improved certificate expiration handling and logging for better feedback. Fixed a typo in comments regarding certificate renewal flags. Rename to "3. Check Certificates", delete old create_certificates.yml Rename new workflow to create_certificates.yml Using the old filename simplifies transitions when syncing branches. New workflow names are not visible in GitHub UI unless they are in the default branch. validate_secrets annotation improvement Rename to original names create_certs.yml name: 3. Create Certificates Changed to reduce need for updating docs and instructions. The workflow for users will be the same as before this PR, but missing or invalid certificates or profiles will be updated automatically. Update job and step names in create_certs.yml Rename job check_certs to create_certs (original name) - Keep step name check_certs - Update step name under nuke_certs - add comments for set -e at fastlane nuke_certs and fastlane certs create_certs.yml job create_certs: name: Certificates
- Loading branch information
Showing
4 changed files
with
160 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters