File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,36 +16,7 @@ permissions:
1616 checks : write
1717
1818jobs :
19- detect_qa_tag :
20- runs-on : macos-latest
21- outputs :
22- has_qa_tag : ${{ steps.detect.outputs.has_qa_tag }}
23- steps :
24- - uses : actions/checkout@v5
25- with :
26- fetch-depth : 0
27- fetch-tags : true
28-
29- - name : Detect QA Tag on PR Head
30- id : detect
31- shell : bash
32- run : |
33- set -euo pipefail
34- PR_HEAD_SHA="${{ github.event.pull_request.head.sha }}"
35- MATCHED_TAG="$(git tag --points-at "$PR_HEAD_SHA" | grep -E '^qa(-local)?-' | head -n 1 || true)"
36-
37- if [ -n "$MATCHED_TAG" ]; then
38- echo "Found QA tag on PR head: $MATCHED_TAG"
39- echo "has_qa_tag=true" >> "$GITHUB_OUTPUT"
40- exit 0
41- fi
42-
43- echo "No QA tag found on PR head"
44- echo "has_qa_tag=false" >> "$GITHUB_OUTPUT"
45-
4619 build :
47- needs : detect_qa_tag
48- if : needs.detect_qa_tag.outputs.has_qa_tag != 'true'
4920 runs-on : macos-latest
5021 timeout-minutes : 30
5122 steps :
You can’t perform that action at this time.
0 commit comments