Skip to content

Commit 709db98

Browse files
itaybreBYK
andauthored
chore: Add CocoaPod keepalive job (#7142)
Creates a daily job that uses cocoapods token so its expiration time increases. ## Motivation Cocoapods tokens now expire 3 days after being last used, but we don't want to update them manually every time we make a release. --------- Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
1 parent c16d53d commit 709db98

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
environment: production
19+
env:
20+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
21+
22+
steps:
23+
- name: Install CocoaPods
24+
run: gem install cocoapods
25+
- name: Print CocoaPods Version
26+
run: pod --version
27+
- name: Refresh CocoaPods Session
28+
run: pod trunk me > /dev/null 2>&1

0 commit comments

Comments
 (0)