Remove env from conditional statements

This commit is contained in:
Christopher C. Wells 2022-11-05 16:42:58 -07:00
parent 0db4f644ce
commit 7edc0ea8fc
1 changed files with 2 additions and 3 deletions

View File

@ -1,14 +1,13 @@
name: "Review app"
env:
DOKKU_GIT_REMOTE_URL: 'ssh://dokku@dokku.baby-buddy.net:22'
TRIGGER_LABEL: 'to review'
on:
pull_request:
types: [labeled, unlabeled]
jobs:
create-review-app:
runs-on: ubuntu-latest
if: github.event_name == 'labeled' && github.event.label.name == ${{ env.TRIGGER_LABEL }}
if: github.event_name == 'labeled' && github.event.label.name == 'to review'
steps:
- uses: actions/checkout@v3
with:
@ -22,7 +21,7 @@ jobs:
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
destroy-review-app:
runs-on: ubuntu-latest
if: github.event_name == 'unlabeled' && github.event.label.name == ${{ env.TRIGGER_LABEL }}
if: github.event_name == 'unlabeled' && github.event.label.name == 'to review'
steps:
- name: Destroy review app
uses: dokku/github-action@master