feat: try get sha?

This commit is contained in:
shenjack 2022-12-29 14:03:59 +08:00
parent 50015f97ad
commit 7162724cc2
2 changed files with 8 additions and 31 deletions

View File

@ -13,6 +13,7 @@ on:
# 主任务
jobs:
build:
if: ${{ github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags/') && contains(github.event.head_commit.message, '[build skip]') == false }}
# 全都要!
strategy:
fail-fast: false
@ -26,6 +27,13 @@ jobs:
- name: Check out
uses: actions/checkout@v3
# 获取短 sha
- name: Get short commit sha
id: get_short_sha
run: |
short_sha=$(echo ${GITHUB_SHA} | cut -c1-7)
echo "short_sha=$short_sha" >> $GITHUB_OUTPUT
# 安装 Python
- name: Setup Python
uses: actions/setup-python@v4

View File

@ -1,31 +0,0 @@
{
"Editor": {
"runtime": {
"toolbar.dark": "ToolbarDark.png",
"toolbar.light": "ToolbarLight.png",
"button_side.dark": "ButtonDarkSide.png",
"button_side.light": "ButtonLightSide.png"
},
"toggle_button": {
"stage": "ToolbarIconStaging.png",
"add_part": "ToolbarIconAddPart.png",
"menu": "ToolbarIconMenu.png"
},
"push_button": {
"zoom": "ToolbarIconZoom.png",
"zoom.in": "ToolbarIconZoomIn.png",
"zoom.out": "ToolbarIconZoomOut.png",
"play": "ToolbarIconPlay.png",
"rotate": "RotateButton.png",
"trash_can": "TrashCan.png"
}
},
"Runtime": {
},
"Parts": {
"battery": "Battery.png",
"beam": "Beam.png",
"cover_bottom": "CoverBottom.png",
"nose_cone": "NoseCone.png"
}
}