mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 更新工作流以指定自托管环境为 Windows 和 X64
parent
7d193fe37b
commit
cd250dd7e7
|
|
@ -4,7 +4,7 @@ on: [pull_request]
|
|||
|
||||
jobs:
|
||||
conflict-check:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Windows, X64]
|
||||
outputs:
|
||||
conflict: ${{ steps.check-conflicts.outputs.conflict }}
|
||||
steps:
|
||||
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
}
|
||||
shell: pwsh
|
||||
labeler:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Windows, X64]
|
||||
needs: conflict-check
|
||||
if: needs.conflict-check.outputs.conflict == 'true'
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ name: Ruff PR Check
|
|||
on: [ pull_request ]
|
||||
jobs:
|
||||
ruff:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Windows, X64]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ permissions:
|
|||
|
||||
jobs:
|
||||
ruff:
|
||||
runs-on: self-hosted
|
||||
runs-on: [self-hosted, Windows, X64]
|
||||
# 关键修改:添加条件判断
|
||||
# 确保只有在 event_name 是 'push' 且不是由 Pull Request 引起的 push 时才运行
|
||||
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/pull/')
|
||||
|
|
|
|||
Loading…
Reference in New Issue