Skip to content

Commit

Permalink
add PR to workflow and use skip duplicate workflows action
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharang committed Aug 31, 2023
1 parent 98efb8b commit f65c48f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/get_data_lint_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,27 @@ name: Get file and author data, validate and update internal links
on:
push:
branches: ["dev"]
pull_request:

jobs:
update_configs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
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@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: "never"
skip_after_successful_duplicate: "true"
do_not_skip: '["pull_request"]'

update_lint_get_data:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit f65c48f

Please sign in to comment.