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.yml
and associated Fastfile changes to check and re…
…voke certificates if less than 30 days to expiry. Launch `create_certs.yml`if certs are revoked. Commenting out cert.revoke! for testing.
- Loading branch information
Showing
3 changed files
with
66 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Check Certificates | ||
run-name: Check Certificates (${{ github.ref_name }}) | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check_certs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.1' | ||
|
||
- name: Install dependencies | ||
run: bundle install | ||
|
||
- name: Check and Revoke Certificates | ||
env: | ||
FASTLANE_USER: ${{ secrets.APPLE_ID }} | ||
FASTLANE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
run: fastlane check_and_revoke_certificates | ||
|
||
trigger_create_certs: | ||
needs: check_certs | ||
if: env.cert_revoked == 'true' | ||
uses: ./.github/workflows/create_certs.yml |
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