Compare commits

...

1 Commits

Author SHA1 Message Date
DevTekVE
31c860f0d1 Update workflow to support manual dispatch for auto-deploy
Allow workflows triggered via 'workflow_dispatch' to use the 'auto-deploy' environment. This ensures manual triggers are treated consistently with predefined branch rules for deployment.
2024-12-28 02:00:03 +01:00

View File

@@ -194,7 +194,7 @@ jobs:
if: ${{ github.event_name != 'pull_request' || github.event_name == 'pull_request' && github.event.pull_request.draft }}
needs: build
runs-on: ubuntu-24.04
environment: ${{ contains(fromJSON(vars.AUTO_DEPLOY_PREBUILT_BRANCHES), github.head_ref || github.ref_name) && 'auto-deploy' || 'feature-branch' }}
environment: ${{ (contains(fromJSON(vars.AUTO_DEPLOY_PREBUILT_BRANCHES), github.head_ref || github.ref_name) || github.event_name == 'workflow_dispatch') && 'auto-deploy' || 'feature-branch' }}
steps:
- uses: actions/checkout@v4