mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
修复MAAUnified CI 选错ref的问题 (#17143)
* ci: checkout PR head for MAAUnified debug builds * fix(Avalonia): 删除倒反天罡的对主仓CI的相关测试
This commit is contained in:
8
.github/workflows/ci-avalonia.yml
vendored
8
.github/workflows/ci-avalonia.yml
vendored
@@ -39,13 +39,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tag: ${{ steps.out.outputs.tag }}
|
||||
checkout_sha: ${{ steps.out.outputs.checkout_sha }}
|
||||
steps:
|
||||
- id: out
|
||||
env:
|
||||
CHECKOUT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
run: |
|
||||
echo "checkout_sha=${CHECKOUT_SHA}" >> "$GITHUB_OUTPUT"
|
||||
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||
echo "tag=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "tag=preview-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=preview-${CHECKOUT_SHA::7}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
build:
|
||||
@@ -77,6 +81,8 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ needs.meta.outputs.checkout_sha }}
|
||||
|
||||
- name: Fetch required submodules
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user