Skip to content

Commit

Permalink
ci: update workflow triggers (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Feb 4, 2025
1 parent de99a7c commit 2df9384
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Deployment

on:
push:
workflow_run:
workflows: ["Verification"]
branches: [main]
types: [completed]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy-documentation:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publishing

on:
push:
workflow_run:
workflows: ["Verification"]
branches: [main]
types: [completed]

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/pull-request.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .github/workflows/verification.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Verification

on: [workflow_call, workflow_dispatch]
on:
push:
branches: [main]
pull_request:
branches: [main]
# Add trigger for `ready_for_review`
# https://github.com/changesets/action/issues/187
types: [opened, reopened, synchronize, ready_for_review]

jobs:
verify:
Expand Down
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
yarn lint
yarn test run
yarn lint

0 comments on commit 2df9384

Please sign in to comment.