Skip to content

Commit e8cc4e7

Browse files
authored
chore: Add CocoaPods token keep-alive workflow to maintain session validity (#7440)
* chore: Add CocoaPods token keep-alive workflow to maintain session validity * Trigger job on PR for testing * Remove testing code * Make sure cocoapods is installed
1 parent 0e4b033 commit e8cc4e7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CocoaPods Token Keep-Alive"
2+
3+
on:
4+
schedule:
5+
# CocoaPods sessions currently expire after 3 days of inactivity (VALIDITY_LENGTH)
6+
# This runs every day at midnight UTC to keep the current token alive
7+
# See: https://github.com/CocoaPods/trunk.cocoapods.org/blob/a1869790e9ae2229b6985b6af4532da814202558/app/models/session.rb#L9
8+
- cron: "0 0 * * *" # Runs every day at midnight UTC
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
keepalive:
16+
name: Refresh CocoaPods Session
17+
runs-on: macos-15
18+
env:
19+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
20+
21+
steps:
22+
- name: Install CocoaPods
23+
run: gem install cocoapods
24+
- name: Refresh CocoaPods Session
25+
run: pod trunk me > /dev/null 2>&1

0 commit comments

Comments
 (0)