Skip to content
TypeScript

fix(ci): skip production workflows in forks (#21216)

Yannic Charlonbed15b9fc77a
diff --git a/.github/workflows/deploy-relay.yml b/.github/workflows/deploy-relay.yml
index 400f7152c61..c8a61602259 100644
--- a/.github/workflows/deploy-relay.yml
+++ b/.github/workflows/deploy-relay.yml
@@ -27,7 +27,7 @@ jobs:
deploy_relay:
name: Deploy production relay
# A manual run from another branch would deploy that branch to production.
- if: github.ref == 'refs/heads/main'
+ if: github.repository == 'pingdotgg/t3code' && github.ref == 'refs/heads/main'
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 15
environment:
diff --git a/.github/workflows/mobile-android-apk.yml b/.github/workflows/mobile-android-apk.yml
index c3db7142e67..18d977c50f4 100644
--- a/.github/workflows/mobile-android-apk.yml
+++ b/.github/workflows/mobile-android-apk.yml
@@ -15,6 +15,7 @@ concurrency:
jobs:
mirror:
name: Mirror beta APK
+ if: github.repository == 'pingdotgg/t3code'
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 10
permissions:
diff --git a/.github/workflows/mobile-eas-production.yml b/.github/workflows/mobile-eas-production.yml
index 16be6ee5f29..b6581e0e8ea 100644
--- a/.github/workflows/mobile-eas-production.yml
+++ b/.github/workflows/mobile-eas-production.yml
@@ -75,6 +75,7 @@ concurrency:
jobs:
production:
name: EAS ${{ inputs.profile || 'production' }} ${{ github.event_name == 'push' && 'auto' || inputs.mode }}
+ if: github.repository == 'pingdotgg/t3code'
runs-on: blacksmith-8vcpu-ubuntu-2404
permissions:
contents: read
diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml
index 62f8fd1f547..4ab6db89ab7 100644
--- a/.github/workflows/publish-aur.yml
+++ b/.github/workflows/publish-aur.yml
@@ -37,6 +37,7 @@ concurrency:
jobs:
publish:
name: Validate and publish
+ if: github.repository == 'pingdotgg/t3code'
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 30
container:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1173e99342d..44b52d1a616 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -50,6 +50,7 @@ jobs:
# have already run. Scheduled runs also decide here whether a nightly is due.
resolve_commit:
name: Resolve release commit
+ if: github.repository == 'pingdotgg/t3code'
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 5
outputs: