Skip to content

Commit

Permalink
chore: crazy conditional | for if
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Sep 1, 2023
1 parent d7ff818 commit ade2ff5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/strain_dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ade2ff5

Please sign in to comment.