diff options
| author | tranch <tranch.xiao@gmail.com> | 2026-08-20 07:23:32 +0800 |
|---|---|---|
| committer | tranch <tranch.xiao@gmail.com> | 2026-08-20 07:23:32 +0800 |
| commit | 7746ea13756b55b3a2ac376927c02aea5e7f07a9 (patch) | |
| tree | 7c69b152e5ec8fe11f927ffa3dbcf4440fe029f9 /.github/workflows | |
| parent | 89e4f1b83d1ac140aedc1f17e350396e7e2c67c5 (diff) | |
| download | AeroCore-OS-7746ea13756b55b3a2ac376927c02aea5e7f07a9.tar.gz AeroCore-OS-7746ea13756b55b3a2ac376927c02aea5e7f07a9.zip | |
ci: restrict release creation branches
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6ff5963..b42fd60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -224,7 +224,9 @@ jobs: generate_release: name: Generate Release needs: [build_push] - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && + (github.ref_name == github.event.repository.default_branch || + github.ref_name == 'testing') permissions: contents: write secrets: inherit |
