Skip to content

Commit

Permalink
🎈 perf: 限制手动触发的工作流只能在主分支运行
Browse files Browse the repository at this point in the history
  • Loading branch information
Amazefcc233 committed Mar 28, 2024
1 parent 035d14e commit 8270b48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
jobs:
build_android:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

steps:
- name: Checkout the code
Expand Down Expand Up @@ -87,6 +88,7 @@ jobs:
build_ios:
runs-on: macos-latest
if: github.ref == 'refs/heads/master'

steps:
- name: Checkout the code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: workflow_dispatch
jobs:
draft-new-release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

steps:
- name: Get Flutter Build Run ID
id: get_run_id
Expand Down

0 comments on commit 8270b48

Please sign in to comment.