Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

ci(desktop): run release and tagging workflows only in PostHog/posthog (#121154)

Georges-Antoine Assi9bbac532967e
diff --git a/.github/workflows/desktop-agent-tag.yml b/.github/workflows/desktop-agent-tag.yml
index f8fde4b6f6c1..ee4f8ecaccf3 100644
--- a/.github/workflows/desktop-agent-tag.yml
+++ b/.github/workflows/desktop-agent-tag.yml
@@ -18,7 +18,7 @@ concurrency:
jobs:
tag:
# A manual run can start from any branch, so the ref check keeps a release tag on master.
- if: github.ref == 'refs/heads/master'
+ if: github.repository == 'PostHog/posthog' && github.ref == 'refs/heads/master'
# The release App's key lives in this environment, which only master and a desktop-v* tag reach.
environment: desktop-tagging
permissions:
diff --git a/.github/workflows/desktop-cleanup-draft-releases.yml b/.github/workflows/desktop-cleanup-draft-releases.yml
index 0d883b7bd963..f9144c33f2ce 100644
--- a/.github/workflows/desktop-cleanup-draft-releases.yml
+++ b/.github/workflows/desktop-cleanup-draft-releases.yml
@@ -11,6 +11,7 @@ concurrency:
jobs:
cleanup:
+ if: github.repository == 'PostHog/posthog'
# The release App's key lives in this environment, which only master and a desktop-v* tag reach.
environment: desktop-tagging
runs-on: depot-ubuntu-24.04
diff --git a/.github/workflows/desktop-mobile-build.yml b/.github/workflows/desktop-mobile-build.yml
index 6688db95d4be..18727d9cb10a 100644
--- a/.github/workflows/desktop-mobile-build.yml
+++ b/.github/workflows/desktop-mobile-build.yml
@@ -36,6 +36,7 @@ env:
jobs:
build:
name: Build (${{ matrix.platform }})
+ if: github.repository == 'PostHog/posthog'
runs-on: depot-ubuntu-24.04-4
timeout-minutes: 120
strategy:
diff --git a/.github/workflows/desktop-mobile-promote.yml b/.github/workflows/desktop-mobile-promote.yml
index 76cb0d1ec488..85edc35684c7 100644
--- a/.github/workflows/desktop-mobile-promote.yml
+++ b/.github/workflows/desktop-mobile-promote.yml
@@ -56,6 +56,7 @@ env:
jobs:
submit:
name: Submit (${{ matrix.platform }})
+ if: github.repository == 'PostHog/posthog'
runs-on: depot-ubuntu-24.04
timeout-minutes: 30
strategy:
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
index 0ec58809ca12..ffd5b427fa6b 100644
--- a/.github/workflows/desktop-release.yml
+++ b/.github/workflows/desktop-release.yml
@@ -16,6 +16,7 @@ env:
jobs:
prepare-release:
+ if: github.repository == 'PostHog/posthog'
environment: desktop-release
runs-on: depot-ubuntu-24.04
timeout-minutes: 10
diff --git a/.github/workflows/desktop-tag.yml b/.github/workflows/desktop-tag.yml
index 9afbbf8b1e39..c4dc829b9a53 100644
--- a/.github/workflows/desktop-tag.yml
+++ b/.github/workflows/desktop-tag.yml
@@ -22,9 +22,10 @@ jobs:
# A manual run can start from any ref, and a break-glass run tags that ref's head. Only
# master and an existing release tag hold code that already merged.
if: >-
- github.event_name == 'schedule' ||
- (github.event_name == 'workflow_dispatch' &&
- (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/desktop-v')))
+ github.repository == 'PostHog/posthog' &&
+ (github.event_name == 'schedule' ||
+ (github.event_name == 'workflow_dispatch' &&
+ (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/desktop-v'))))
# The release App's key lives in this environment, which only master and a desktop-v* tag reach.
environment: desktop-tagging
permissions:
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index ef6dc5d77fd3..f230bd4e8204 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -24,6 +24,7 @@ concurrency:
jobs:
check-changesets:
name: Check for CLI changesets
+ if: github.repository == 'PostHog/posthog'
runs-on: ubuntu-24.04
timeout-minutes: 5
outputs: