mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-05 15:31:44 +00:00
ci: lint error
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
f214d69ed3
commit
05953a59e3
6
.github/workflows/run-lint.yaml
vendored
6
.github/workflows/run-lint.yaml
vendored
@ -37,6 +37,12 @@ jobs:
|
|||||||
echo "GITHUB_BEFORE=$GITHUB_BEFORE"
|
echo "GITHUB_BEFORE=$GITHUB_BEFORE"
|
||||||
echo "GITHUB_AFTER=$GITHUB_AFTER"
|
echo "GITHUB_AFTER=$GITHUB_AFTER"
|
||||||
|
|
||||||
|
# Check for new branch (all zeros SHA)
|
||||||
|
if [ "$GITHUB_BEFORE" = "0000000000000000000000000000000000000000" ]; then
|
||||||
|
echo "New branch detected, skipping commit message validation."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$GITHUB_EVENT_NAME" = "pull_request" ] && [ -n "$GITHUB_BASE_SHA" ] && [ -n "$GITHUB_HEAD_SHA" ]; then
|
if [ "$GITHUB_EVENT_NAME" = "pull_request" ] && [ -n "$GITHUB_BASE_SHA" ] && [ -n "$GITHUB_HEAD_SHA" ]; then
|
||||||
FROM="$GITHUB_BASE_SHA"
|
FROM="$GITHUB_BASE_SHA"
|
||||||
TO="$GITHUB_HEAD_SHA"
|
TO="$GITHUB_HEAD_SHA"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user