: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
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.ymlindex 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-taggingpermissions:diff --git a/.github/workflows/desktop-cleanup-draft-releases.yml b/.github/workflows/desktop-cleanup-draft-releases.ymlindex 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-taggingruns-on: depot-ubuntu-24.04diff --git a/.github/workflows/desktop-mobile-build.yml b/.github/workflows/desktop-mobile-build.ymlindex 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-4timeout-minutes: 120strategy:diff --git a/.github/workflows/desktop-mobile-promote.yml b/.github/workflows/desktop-mobile-promote.ymlindex 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.04timeout-minutes: 30strategy:diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.ymlindex 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-releaseruns-on: depot-ubuntu-24.04timeout-minutes: 10diff --git a/.github/workflows/desktop-tag.yml b/.github/workflows/desktop-tag.ymlindex 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-taggingpermissions:diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.ymlindex 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.04timeout-minutes: 5outputs: