From 3783352fc8acef4cd4e5a4e2d4a7d897f6bbd989 Mon Sep 17 00:00:00 2001 From: VariableVince <24507472+VariableVince@users.noreply.github.com> Date: Sat, 25 Apr 2026 19:52:51 +0200 Subject: [PATCH] Fix: only run the deploy action within our repository (#3753) ## Description: Fix: only run the deploy action within our repo. It was already meant to do this, but the if statement had a bug. This lead to errors in repos with a fork, because it would run but couldn't find the needed secrets there of course. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: tryout33 --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6dc2c0c95..1684f8c9b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,8 +47,8 @@ concurrency: jobs: deploy: - # Don't deploy on push if this is a fork; always deploy on schedule and workflow_dispatch - if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || github.repository == 'openfrontio/OpenFrontIO' }} + # Deploy on push/schedule/workflow_dispatch (see "on:") unless this is a fork + if: ${{ github.repository == 'openfrontio/OpenFrontIO' }} # Use different logic based on event type name: Deploy to ${{ inputs.target_domain || 'openfront.dev' }} runs-on: ubuntu-latest