Skip to content

Commit

Permalink
ci(actions): ⚡️ improve the actions trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-Xu-0100 committed Mar 29, 2021
1 parent df7acff commit b8f2a10
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 'prepare release'

on:
workflow_dispatch:
workflow_run:
workflows: ['release']
branches: [main]
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ name: 'release beta'

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/**'
- 'locale/**'
- package*.json
- tsconfig.json
- index.json
- '**/release-beta.yml'

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: release
on:
workflow_dispatch:
push:
branches:
- main
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
name: test

on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**.ts'
- 'src/**'
- 'locale/**'
- 'package*.json'
- tsconfig.json
- index.json
- '**/test.yml'
pull_request:
paths:
- '**.ts'
- 'src/**'
- 'locale/**'
- 'package*.json'
- tsconfig.json
- index.json
- '**/test.yml'

jobs:
test:
Expand Down

0 comments on commit b8f2a10

Please sign in to comment.