Skip to content

Commit 59ac734

Browse files
authored
fix: syntax in archiving.yml, more flexible triggering, add permissions (#15632)
1 parent 0e51f70 commit 59ac734

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/archiving.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: archiving
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_dispatch:
58
pull_request:
@@ -18,8 +21,7 @@ jobs:
1821
# Archive tests for pods that support iOS only.
1922
pods-ios-only-cron:
2023
# Don't run on private repo.
21-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
22-
24+
if: github.repository == 'Firebase/firebase-ios-sdk'
2325
runs-on: macos-15
2426
strategy:
2527
matrix:
@@ -44,8 +46,7 @@ jobs:
4446
# Archive tests for pods that support iOS, tvOS, and macOS.
4547
pods-ios-tvos-macos-cron:
4648
# Don't run on private repo.
47-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule')
48-
49+
if: github.repository == 'Firebase/firebase-ios-sdk'
4950
runs-on: macos-15
5051
strategy:
5152
matrix:
@@ -63,7 +64,7 @@ jobs:
6364
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
6465
with:
6566
# Firestore gets a 60 min. timeout, everything else gets 20 min.
66-
timeout_minutes: ${{ matrix.pod == "FirebaseFirestore" && 60 || 20 }}
67+
timeout_minutes: ${{ matrix.pod == 'FirebaseFirestore' && 60 || 20 }}
6768
max_attempts: 3
6869
retry_wait_seconds: 300
6970
command: scripts/test_archiving.sh ${{ matrix.pod }} ${{ matrix.target }} ArchiveOutputs/${{ matrix.target }}.xcarchive

0 commit comments

Comments
 (0)