TypeScript
fix(ci): skip production workflows in forks (#21216)
Yannic Charlonbed15b9fc77a
diff --git a/.github/workflows/deploy-relay.yml b/.github/workflows/deploy-relay.ymlindex 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-2404timeout-minutes: 15environment:diff --git a/.github/workflows/mobile-android-apk.yml b/.github/workflows/mobile-android-apk.ymlindex 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-2404timeout-minutes: 10permissions:diff --git a/.github/workflows/mobile-eas-production.yml b/.github/workflows/mobile-eas-production.ymlindex 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-2404permissions:contents: readdiff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.ymlindex 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-2404timeout-minutes: 30container:diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 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-2404timeout-minutes: 5outputs: