From 73228bb891a24c73e9a6f848766595299a373346 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 09:36:19 +0000 Subject: [PATCH] Only create app token when deploying preview Co-Authored-By: Mattias Buelens --- .github/workflows/_deploy.yml | 1 + .github/workflows/_undeploy.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/_deploy.yml b/.github/workflows/_deploy.yml index b3e665950bc4..e0be4f552e96 100644 --- a/.github/workflows/_deploy.yml +++ b/.github/workflows/_deploy.yml @@ -42,6 +42,7 @@ jobs: - name: Create app token uses: actions/create-github-app-token@v3 id: app-token + if: ${{ inputs.environment_name == 'preview' }} with: client-id: ${{ vars.THEOPLAYER_BOT_APP_ID }} private-key: ${{ secrets.THEOPLAYER_BOT_PRIVATE_KEY }} diff --git a/.github/workflows/_undeploy.yml b/.github/workflows/_undeploy.yml index 56ba101f6d00..5301db3d3ded 100644 --- a/.github/workflows/_undeploy.yml +++ b/.github/workflows/_undeploy.yml @@ -30,6 +30,7 @@ jobs: - name: Create app token uses: actions/create-github-app-token@v3 id: app-token + if: ${{ inputs.environment_name == 'preview' }} with: client-id: ${{ vars.THEOPLAYER_BOT_APP_ID }} private-key: ${{ secrets.THEOPLAYER_BOT_PRIVATE_KEY }}