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