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 }}