Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
codeallthethingz committed Jan 8, 2025
1 parent 7517448 commit bfb8dc1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Docs2
name: Docs Check

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

on:
push:
Expand All @@ -15,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- should_run_docs
if: github.event_name == 'pull_request'
steps:
- name: Checkout tbp.monty
if: ${{ needs.should_run_docs.outputs.should_run_docs == 'true' }}
Expand Down Expand Up @@ -66,7 +70,7 @@ jobs:
should_run_docs:
name: should-run-docs
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'thousandbrainsproject' }}
# if: ${{ github.repository_owner == 'thousandbrainsproject' }}
outputs:
should_run_docs: ${{ steps.should_run.outputs.should_run_docs }}
steps:
Expand All @@ -87,7 +91,8 @@ jobs:
echo $changed_file
if [[ $changed_file == docs/* ]] ||
[[ $changed_file == tools/github_readme_sync/* ]] ||
[[ $changed_file == .github/workflows/docs* ]]; then
[[ $changed_file == .github/workflows/docs-check.yml ]] ||
[[ $changed_file == .github/workflows/docs-preview.yml ]]; then
echo "should_run_docs=true" >> $GITHUB_OUTPUT
exit 0
fi
Expand Down

0 comments on commit bfb8dc1

Please sign in to comment.