From e77ec5207ae3c4282bec3fd4a45191c280ca9379 Mon Sep 17 00:00:00 2001 From: Itay Brenner Date: Thu, 12 Feb 2026 10:11:29 -0300 Subject: [PATCH 1/3] chore: Add CocoaPod keepalive job --- .github/workflows/cocoapods-keepalive.yml | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/cocoapods-keepalive.yml diff --git a/.github/workflows/cocoapods-keepalive.yml b/.github/workflows/cocoapods-keepalive.yml new file mode 100644 index 0000000..8176c3e --- /dev/null +++ b/.github/workflows/cocoapods-keepalive.yml @@ -0,0 +1,25 @@ +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-15 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + + steps: + - name: Install CocoaPods + run: gem install cocoapods + - name: Refresh CocoaPods Session + run: pod trunk me > /dev/null 2>&1 From 8caaaa527cf1b14c7f0b3e67b180121569556daa Mon Sep 17 00:00:00 2001 From: Itay Brenner Date: Thu, 12 Feb 2026 10:13:10 -0300 Subject: [PATCH 2/3] print cocoapod version --- .github/workflows/cocoapods-keepalive.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cocoapods-keepalive.yml b/.github/workflows/cocoapods-keepalive.yml index 8176c3e..d5e2480 100644 --- a/.github/workflows/cocoapods-keepalive.yml +++ b/.github/workflows/cocoapods-keepalive.yml @@ -21,5 +21,7 @@ jobs: steps: - name: Install CocoaPods run: gem install cocoapods + - name: Print CocoaPods Version + run: pod --version - name: Refresh CocoaPods Session run: pod trunk me > /dev/null 2>&1 From 5c22ac353b1fec3e2a9b24f9f337f385810a4d47 Mon Sep 17 00:00:00 2001 From: Itay Brenner Date: Thu, 12 Feb 2026 10:32:12 -0300 Subject: [PATCH 3/3] Add environment Co-authored-by: Burak Yigit Kaya --- .github/workflows/cocoapods-keepalive.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cocoapods-keepalive.yml b/.github/workflows/cocoapods-keepalive.yml index d5e2480..21c0696 100644 --- a/.github/workflows/cocoapods-keepalive.yml +++ b/.github/workflows/cocoapods-keepalive.yml @@ -15,6 +15,7 @@ jobs: keepalive: name: Refresh CocoaPods Session runs-on: macos-15 + environment: production env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}