mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
ci: push 时默认全平台构建
This commit is contained in:
@@ -40,6 +40,17 @@ jobs:
|
|||||||
echo "${{ github.event.inputs.version }} ${{ github.event.inputs.build }}"
|
echo "${{ github.event.inputs.version }} ${{ github.event.inputs.build }}"
|
||||||
echo "__EOF__"
|
echo "__EOF__"
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
|
elif [ "${{ github.event_name }}" = "push" ]; then
|
||||||
|
VERSION="$(sed -n 's/.*"version":[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -n 1)"
|
||||||
|
if [ -z "$VERSION" ]; then
|
||||||
|
echo "无法从 package.json 读取 version 字段" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
{
|
||||||
|
echo "message<<__EOF__"
|
||||||
|
echo "$VERSION build:all"
|
||||||
|
echo "__EOF__"
|
||||||
|
} >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo "message<<__EOF__"
|
echo "message<<__EOF__"
|
||||||
|
|||||||
Reference in New Issue
Block a user