ShellCrash/.github/workflows/core_auto_update.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

name: core_auto_update
on:
schedule:
2024-03-30 12:39:48 +08:00
- cron: 0 18 * * *
workflow_dispatch:
jobs:
2024-03-30 12:39:48 +08:00
check_version:
runs-on: ubuntu-latest
steps:
- name: Get old version
run: |
echo version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) >> $GITHUB_OUTPUT
- name: checkout
- uses: actions/checkout@v4
with:
repository: PuerNya/sing-box
ref: building
fetch-depth: 0
- name: Get new version
run: |
git remote add sekai https://github.com/SagerNet/sing-box.git
git fetch --tags sekai
echo version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) >> $GITHUB_OUTPUT
2024-03-23 16:04:43 +08:00
auto_update_singboxp_with_wg:
2024-03-30 12:39:48 +08:00
needs: check_version
if: ${{ needs.check_version.outputs.version_new != needs.check_version.outputs.version_old }}
permissions: write-all
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
with:
tag1: PuerNya/sing-box
tag2: building
2024-03-23 17:01:39 +08:00
tag3: singbox_core_PuerNya
tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor
secrets: inherit