2021-12-25 21:15:28 +09:00
|
|
|
name: 更新 md5
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
with:
|
2023-03-25 15:21:06 +09:00
|
|
|
submodules: 'true'
|
2021-12-25 21:15:28 +09:00
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2023-02-27 14:59:20 +09:00
|
|
|
go-version: '1.20'
|
2021-12-25 21:15:28 +09:00
|
|
|
|
|
|
|
- name: Run Updater
|
|
|
|
env:
|
|
|
|
REILIA_SPS: ${{ secrets.REILIA_SPS }}
|
|
|
|
run: |
|
2023-03-25 15:27:54 +09:00
|
|
|
echo "ls ./"
|
2021-12-25 21:15:28 +09:00
|
|
|
ls
|
2023-03-25 18:23:17 +09:00
|
|
|
rm -rf Wife/*.go Wife/*.md Wife/.git
|
2023-03-25 15:27:54 +09:00
|
|
|
echo "ls Wife/"
|
2023-03-25 15:21:06 +09:00
|
|
|
ls Wife/
|
2021-12-25 21:15:28 +09:00
|
|
|
go mod init updater
|
2022-03-27 15:00:12 +09:00
|
|
|
sed -i '1,3d' main.go
|
2021-12-25 21:15:28 +09:00
|
|
|
go mod tidy
|
|
|
|
go run main.go
|