From 03ed74fdf98778355c50af2f6c13c3e8701226ba Mon Sep 17 00:00:00 2001 From: Juerg B <44573692+juergba@users.noreply.github.com> Date: Mon, 18 Apr 2022 07:37:42 +0200 Subject: [PATCH] test2 --- .github/workflows/mocha.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.yml index 73d8a648f7..dca3a259e2 100644 --- a/.github/workflows/mocha.yml +++ b/.github/workflows/mocha.yml @@ -17,25 +17,28 @@ jobs: # skip 'push' event when an open PR exists name: Prevent double run runs-on: ubuntu-latest + outputs: + pr-id: ${{ steps.findPr.outputs.number }} steps: - name: Check event pull_request if: github.event_name == 'pull_request' run: 'echo pull_request: run workflow' - uses: actions/checkout@v2 if: github.event_name == 'push' - - name: Get PR number + - name: Check event push id: findPr if: github.event_name == 'push' uses: jwalton/gh-find-current-pr@v1 with: state: open - - name: Check event push - if: github.event_name == 'push' && steps.findPr.outputs.number == '' - run: 'echo push: run workflow, no open PR found' + # - name: Check event push + # if: github.event_name == 'push' && steps.findPr.outputs.number == '' + # run: 'echo push: run workflow, no open PR found' smoke: name: 'Smoke [Node.js v${{ matrix.node }} / ${{ matrix.os }}]' needs: prevent-double-run + if: needs.prevent-double-run.outputs.pr-id == '' runs-on: '${{ matrix.os }}' strategy: matrix: