Skip to content

Commit 8014108

Browse files
author
neil
committed
support VM_EXTRA_SCRIPT
1 parent b1d2797 commit 8014108

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

.github/tpl/build.tpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
# # this might remove tools that are actually needed,
5151
# # if set to "true" but frees about 6 GB
5252
# tool-cache: false
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v6
5454
- name: Creating Web console
5555
uses: anyvm-org/cf-tunnel@v0
5656
id: tunnel

.github/tpl/generate.tpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
generate:
1717
runs-on: ubuntu-24.04
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
with:
2121
token: ${{ secrets.VM_TOKEN }}
2222
fetch-depth: '2'

.github/tpl/manual.tpl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
NGROK_TOKEN : ${{ secrets.NGROK_TOKEN }}
1212
SEC_VBOX : ${{ vars.SEC_VBOX }}
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- name: Creating web console
1616
uses: anyvm-org/cf-tunnel@v0
1717
id: tunnel

.github/workflows/readme.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ jobs:
2121
readme:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525

2626
- name: Get latest release
2727
id: get-latest-release
28-
uses: InsonusK/get-latest-release@v1.0.1
29-
with:
30-
myToken: ${{ github.token }}
31-
view_top: 1
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
run: |
31+
tag=$(gh api "repos/${{ github.repository }}/releases/latest" --jq .tag_name)
32+
echo "tag_name=$tag" >> $GITHUB_OUTPUT
3233
3334
- name: Using main branch
3435
run: |

build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,17 @@ if [ -e "hooks/finalize.sh" ]; then
460460
ssh -o "SendEnv=VM_RELEASE" $osname sh<"hooks/finalize.sh"
461461
fi
462462

463+
464+
#support VM_EXTRA_SCRIPT
465+
if [ "$VM_EXTRA_SCRIPT" ]; then
466+
echo "$VM_EXTRA_SCRIPT"
467+
export VM_RELEASE
468+
ssh -o "SendEnv=VM_RELEASE" $osname sh<"$VM_EXTRA_SCRIPT"
469+
fi
470+
471+
472+
473+
463474
# Done!
464475
shutdown_and_wait
465476

0 commit comments

Comments
 (0)