Skip to content

Commit a0e7583

Browse files
committed
Update from base builder
1 parent f58b787 commit a0e7583

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/build.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/workflows/manual.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: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export VM_USE_NC_ENABLE_SSH
4141
export VM_USE_TELNET_ENABLE_SSH
4242
export VM_USE_BASH_ENABLE_SSH
4343
export VM_NIC
44-
44+
export VM_EXTRA_SCRIPT
4545

4646
##############################################################
4747

@@ -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)