Skip to content

Commit

Permalink
chore: skip duplicate ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Dec 3, 2020
1 parent bf63692 commit 9c3ebe2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,21 @@ name: ci
on: [push, pull_request]

jobs:
should-skip:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should-skip: ${{ steps.skip-check.outputs.should-skip }}
steps:
- id: skip-check
uses: fkirc/skip-duplicate-actions@v2.1.0
with:
github_token: ${{ github.token }}

ci:
needs: should-skip
if: ${{needs.should-skip.outputs.should-skip != 'true'}}
env:
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
Expand Down

0 comments on commit 9c3ebe2

Please sign in to comment.