From bcf73cca731fa4c3c476bc03f8f0db769feb9cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sza=C5=82owski?= Date: Fri, 5 Apr 2024 11:07:08 +0200 Subject: [PATCH] [#633] chore: change execution of the deployment actions --- .github/workflows/build-and-deploy-beta.yml | 5 ++--- .github/workflows/build-and-deploy-staging.yml | 4 +++- .github/workflows/build-and-deploy-test.yml | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy-beta.yml b/.github/workflows/build-and-deploy-beta.yml index 6118aa0f1..417812353 100644 --- a/.github/workflows/build-and-deploy-beta.yml +++ b/.github/workflows/build-and-deploy-beta.yml @@ -1,10 +1,9 @@ name: Build and deploy GovTool to BETA server run-name: Deploy by @${{ github.actor }} +# That should be executed on create: tag event on: - push: - branches: - - main + workflow_dispatch: env: ENVIRONMENT: "beta" diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index 8c46e0d9d..a1d97e720 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -2,9 +2,11 @@ name: Build and deploy GovTool to STAGING server run-name: Deploy by @${{ github.actor }} on: - push: + pull_request: branches: - staging + types: + - closed env: ENVIRONMENT: "staging" diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index 9b94bc6dc..61c802573 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -2,9 +2,11 @@ name: Build and deploy GovTool to TEST server run-name: Deploy by @${{ github.actor }} on: - push: + pull_request: branches: - test + types: + - closed env: ENVIRONMENT: "test"