From ade2ff5771814ea81bcfd8126199bd2f066cf6db Mon Sep 17 00:00:00 2001 From: Johan Castiblanco Date: Fri, 1 Sep 2023 18:21:57 -0500 Subject: [PATCH] chore: crazy conditional | for if --- .github/workflows/strain_dispatcher.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/strain_dispatcher.yml b/.github/workflows/strain_dispatcher.yml index ed601276..506032a1 100644 --- a/.github/workflows/strain_dispatcher.yml +++ b/.github/workflows/strain_dispatcher.yml @@ -18,16 +18,13 @@ jobs: echo "LAST_COMMIT_LOG=${LAST_COMMIT_LOG}" >> $GITHUB_ENV # update GitHub ENV vars - name: Log of last commit of the PR is run: echo "${{ env.LAST_COMMIT_LOG }}" - - name: log all - run: echo "${{toJSON(github)}}" - name: Strain Repository Dispatch - if: > - ${{ + if: | github.event.action == 'opened' || (github.event.action == 'closed' && github.event.pull_request.merged) || contains(env.LAST_COMMIT_LOG, 'build:') - }} + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.NELP_PAT_TEST }}