Skip to content

Commit

Permalink
Update static-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker authored Sep 10, 2024
1 parent 79c2da8 commit 7f643f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@ on:
- cron: '59 23 * * 0'

jobs:
#Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action.
check-for-duplicates:
runs-on: ${{ github.repository_owner == 'cFS' && 'linux' || '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@master
with:
concurrent_skipping: 'same_content'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

static-analysis:
name: Run cppcheck
needs: check-for-duplicates
runs-on: ${{ github.repository_owner == 'cFS' && 'linux' || 'ubuntu-latest' }}

steps:
Expand Down

0 comments on commit 7f643f2

Please sign in to comment.