Fix skip-ci on stable (#5909)

* Fix skip-ci on `stable`.
This commit is contained in:
Jimmy Chen
2024-06-13 12:38:31 +10:00
committed by GitHub
parent c24b2f39b3
commit 1bcd1f15b1

View File

@@ -41,7 +41,7 @@ jobs:
LABELS: ${{ toJson(github.event.pull_request.labels) }}
run: |
SKIP_CI="false"
if [ -z "${LABELS}" ]; then
if [ -z "${LABELS}" ] || [ "${LABELS}" = "null" ]; then
LABELS="none";
else
LABELS=$(echo ${LABELS} | jq -r '.[].name')
@@ -52,7 +52,7 @@ jobs:
break
fi
done
echo "::set-output name=skip_ci::$SKIP_CI"
echo "skip_ci=$SKIP_CI" >> $GITHUB_OUTPUT
target-branch-check:
name: target-branch-check