From eae11b5f632fd5dddd56db128fbe1d07b65ec863 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 5 Nov 2022 21:33:17 -0700 Subject: [PATCH] Use action name for conditionals --- .github/workflows/review-app.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/review-app.yml b/.github/workflows/review-app.yml index 05ba39b9..74ebd71b 100644 --- a/.github/workflows/review-app.yml +++ b/.github/workflows/review-app.yml @@ -5,22 +5,12 @@ on: pull_request: types: [labeled, unlabeled] jobs: - dump-contexts-to-log: - runs-on: ubuntu-latest - steps: - - name: Dump GitHub context - id: github_context_step - run: echo '${{ toJSON(github) }}' - - name: Dump job context - run: echo '${{ toJSON(job) }}' - - name: Dump steps context - run: echo '${{ toJSON(steps) }}' create-review-app: runs-on: ubuntu-latest environment: name: pr-${{ github.event.pull_request.number }} url: https://pr-${{ github.event.pull_request.number }}.dokku.baby-buddy.net - if: github.event_name == 'labeled' && github.event.label.name == 'to review' + if: github.event.action == 'labeled' && github.event.label.name == 'to review' steps: - uses: actions/checkout@v3 with: @@ -37,7 +27,7 @@ jobs: environment: name: pr-${{ github.event.pull_request.number }} url: https://pr-${{ github.event.pull_request.number }}.dokku.baby-buddy.net - if: github.event_name == 'unlabeled' && github.event.label.name == 'to review' + if: github.event.action == 'unlabeled' && github.event.label.name == 'to review' steps: - name: Destroy review app uses: dokku/github-action@master