From 5fa26b4ee8788647419c7b73807cca5f1394e77b Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 20 Dec 2023 12:45:24 +0100 Subject: [PATCH] chore: add default staging branch --- .github/workflows/continuous-integration.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 607eb7a..d5512bd 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -3,7 +3,9 @@ name: continuous-integration on: workflow_dispatch: push: - branches: [main] + branches: + - main + - staging release: types: [published] @@ -41,6 +43,9 @@ jobs: - id: environment-identifier run: | if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; + then + echo environment="staging" >> $GITHUB_OUTPUT + elif [[ "${{ github.ref_name }}" == "staging" ]]; then echo environment="staging" >> $GITHUB_OUTPUT elif [[ "${{ github.ref_type }}" == "tag" ]];