Skip to content

Commit

Permalink
ci: fix the ci workflow checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwebbio committed Mar 25, 2024
1 parent f1240e3 commit 86b957c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
pull_request_target:
pull_request:
schedule:
- cron: '0 0 * * 0'

Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
fail_ci_if_error: true
docs:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -99,3 +99,16 @@ jobs:
- run: yarn
- run: yarn ci:generate-config-docs
- run: cat CONFIG.md
lint-commits:
timeout-minutes: 10
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn
- run: yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
13 changes: 0 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ concurrency:
cancel-in-progress: true

jobs:
lint-commits:
timeout-minutes: 10
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: yarn --immutable --immutable-cache
- run: yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
automerge:
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down

0 comments on commit 86b957c

Please sign in to comment.