From f496b207cb986d2ce5fa31141a976ad47c965e1a Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 4 Nov 2024 22:38:14 +0900 Subject: [PATCH] build: set environment based on branch ref Added environment variable to differentiate between 'main' and 'development' branches. --- .github/workflows/worker-delete.yml | 1 + .github/workflows/worker-deploy.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/worker-delete.yml b/.github/workflows/worker-delete.yml index 89d3e23f..5a9a43c0 100644 --- a/.github/workflows/worker-delete.yml +++ b/.github/workflows/worker-delete.yml @@ -7,6 +7,7 @@ jobs: delete: runs-on: ubuntu-latest name: Delete Deployment + environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }} steps: - name: Setup Node uses: actions/setup-node@v4 diff --git a/.github/workflows/worker-deploy.yml b/.github/workflows/worker-deploy.yml index b218e8f1..325a604e 100644 --- a/.github/workflows/worker-deploy.yml +++ b/.github/workflows/worker-deploy.yml @@ -8,6 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest name: Deploy + environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }} steps: - name: Setup Node uses: actions/setup-node@v4