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" name: "Review app"
env: env:
DOKKU_GIT_REMOTE_URL: 'ssh://dokku@dokku.baby-buddy.net:22' DOKKU_GIT_REMOTE_URL: 'ssh://dokku@dokku.baby-buddy.net:22'
TRIGGER_LABEL: 'to review'
on: on:
pull_request: pull_request:
types: [labeled, unlabeled] types: [labeled, unlabeled]
jobs: jobs:
create-review-app: create-review-app:
runs-on: ubuntu-latest 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
@ -22,7 +21,7 @@ jobs:
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
destroy-review-app: destroy-review-app:
runs-on: ubuntu-latest 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: steps:
- name: Destroy review app - name: Destroy review app
uses: dokku/github-action@master uses: dokku/github-action@master