Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Apr 18, 2022
1 parent e3d661b commit 03ed74f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/mocha.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 03ed74f

Please sign in to comment.