CocoaPods Token Keep-Alive #46
This file contains hidden or 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
| name: CocoaPods Token Keep-Alive | |
| on: | |
| schedule: | |
| # CocoaPods sessions currently expire after 3 days of inactivity (VALIDITY_LENGTH) | |
| # This runs every day at midnight UTC to keep the current token alive | |
| # See: https://github.com/CocoaPods/trunk.cocoapods.org/blob/a1869790e9ae2229b6985b6af4532da814202558/app/models/session.rb#L9 | |
| - cron: '0 0 * * *' # Runs every day at midnight UTC | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| keepalive: | |
| name: Refresh CocoaPods Session | |
| runs-on: macos-latest | |
| env: | |
| COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
| steps: | |
| - name: Setup Cocoapods | |
| uses: maxim-lobanov/setup-cocoapods@v1 | |
| with: | |
| version: latest | |
| - name: Refresh CocoaPods Session | |
| run: pod trunk me |