From 52cd1d75d7fb5e0c9fc087c73991bcfdb531fc33 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 29 Apr 2024 13:15:42 +0100 Subject: Set GH Actions environment based on branch name --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a94179b..6e91c11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,8 +23,8 @@ on: jobs: # This workflow contains a single job called "build" build: - # For the main branch, this job should use the staging environment - environment: staging + environment: + name: ${{ github.ref_name }} # The type of runner that the job will run on runs-on: ubuntu-latest -- cgit v1.2.3