diff options
author | Daniil Baturin <daniil@baturin.org> | 2024-04-29 13:15:42 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2024-04-29 13:15:42 +0100 |
commit | 52cd1d75d7fb5e0c9fc087c73991bcfdb531fc33 (patch) | |
tree | 6d9b31f6f6aaa9104d1feca1714149e5c5338adf /.github/workflows/main.yml | |
parent | 00e864834b160cdfaa86e1facdee87153dc9396f (diff) | |
download | community.vyos.net-52cd1d75d7fb5e0c9fc087c73991bcfdb531fc33.tar.gz community.vyos.net-52cd1d75d7fb5e0c9fc087c73991bcfdb531fc33.zip |
Set GH Actions environment based on branch name
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 4 |
1 files 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 |