mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-10 12:51:14 +00:00
revert test filter
This commit is contained in:
3
.github/workflows/terraform.yml
vendored
3
.github/workflows/terraform.yml
vendored
@@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- feature/test-filters
|
||||
tags:
|
||||
- v\d+\.\d+\.\d+$
|
||||
pull_request:
|
||||
@@ -81,7 +80,7 @@ jobs:
|
||||
id: check-tag
|
||||
run: |
|
||||
if [[ ${{ github.ref }} =~ "^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$" ]]; then echo ::set-output name=environment::production
|
||||
elif [[ ${{ github.ref }} == 'refs/heads/feature/test-filters' ]]; then echo ::set-output name=environment::staging
|
||||
elif [[ ${{ github.ref }} == 'refs/heads/main' ]]; then echo ::set-output name=environment::staging
|
||||
else echo ::set-output name=environment::unknown
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user