Skip to content

Commit

Permalink
Trigger static analysis for each commit (#18)
Browse files Browse the repository at this point in the history
* add workflow

* Test the trigger

* Disable PR triggering
  • Loading branch information
harryz2000 authored Oct 6, 2023
1 parent b88c829 commit ab4ed57
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: static-analysis

on:
push:
branches: [ master ]

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_STATIC_ANALYSIS }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'medooze',
repo: 'static-analysis',
workflow_id: 'coverity-single-repo.yml',
ref: 'master',
inputs: { repo: 'rtmp-server-node', private: false, commit: '${{ github.sha }}' }
})

0 comments on commit ab4ed57

Please sign in to comment.