Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
Autumn-27 committed Jun 14, 2024
1 parent 7b52164 commit 9bc5b9e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
schedule:
- cron: '0 12 * * *'

jobs:
build:
Expand All @@ -19,21 +17,40 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Mkdir Tools
run: mkdir tools
- name: Update Ksubdomain
run: |
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-linux.tar
tar xvf KSubdomain-v1.9.5-linux.tar
rm -rf KSubdomain-v1.9.5-linux.tar
mv ksubdomain tools/ksubdomain
mv ksubdomain tools/linux/ksubdomain
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-v1.9.5-darwin.tar
tar xvf KSubdomain-v1.9.5-darwin.tar
rm -rf KSubdomain-v1.9.5-darwin.tar
mv ksubdomain tools/darwin/ksubdomain
wget https://github.com/boy-hack/ksubdomain/releases/download/v1.9.5/KSubdomain-windows.tar
tar xvf KSubdomain-windows.tar
rm -rf KSubdomain-windows.tar
mv ksubdomain.exe tools/win/ksubdomain.exe
- name: Update rad
run: |
wget https://github.com/chaitin/rad/releases/download/1.0/rad_linux_amd64.zip
unzip rad_linux_amd64.zip
rm -rf rad_linux_amd64.zip
mv rad_linux_amd64 tools/rad_linux_amd64
mv rad_linux_amd64 tools/linux/rad
wget https://github.com/chaitin/rad/releases/download/1.0/rad_darwin_amd64.zip
unzip rad_darwin_amd64.zip
rm -rf rad_darwin_amd64.zip
mv rad_darwin_amd64 tools/darwin/rad
wget https://github.com/chaitin/rad/releases/download/1.0/rad_windows_amd64.zip
unzip rad_windows_amd64.zip
rm -rf rad_windows_amd64.zip
mv rad_windows_amd64.exe tools/win/rad.exe
- name: Commit and Push changes
run: |
echo $(date +'%Y%m%d') > date.txt
Expand Down
1 change: 1 addition & 0 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
chromium \
vim \
tzdata \
libpcap-dev \
&& rm -rf /var/lib/apt/lists/*
# 拷贝当前目录下的可执行文件到容器中
COPY dist/linux_amd_x64/ScopeSentry /apps/ScopeSentry
Expand Down

0 comments on commit 9bc5b9e

Please sign in to comment.