mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-11 13:21: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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- feature/test-filters
|
|
||||||
tags:
|
tags:
|
||||||
- v\d+\.\d+\.\d+$
|
- v\d+\.\d+\.\d+$
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -81,7 +80,7 @@ jobs:
|
|||||||
id: check-tag
|
id: check-tag
|
||||||
run: |
|
run: |
|
||||||
if [[ ${{ github.ref }} =~ "^refs\/tags\/v[0-9]+\.[0-9]+\.[0-9]+$" ]]; then echo ::set-output name=environment::production
|
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
|
else echo ::set-output name=environment::unknown
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user