mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 03:32:34 +08:00
已修改 .github/workflows/core_auto_update.yml
This commit is contained in:
parent
3956c955cf
commit
63b02a830c
11
.github/workflows/core_auto_update.yml
vendored
11
.github/workflows/core_auto_update.yml
vendored
|
@ -11,7 +11,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Get old version
|
- name: Get old version
|
||||||
run: |
|
run: |
|
||||||
echo version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) >> $GITHUB_OUTPUT
|
version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version)
|
||||||
|
echo version_old=$version_old >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -23,11 +24,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git remote add sekai https://github.com/SagerNet/sing-box.git
|
git remote add sekai https://github.com/SagerNet/sing-box.git
|
||||||
git fetch --tags sekai
|
git fetch --tags sekai
|
||||||
echo version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) >> $GITHUB_OUTPUT
|
version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag)
|
||||||
|
echo version_new=$version_new >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
auto_update_singboxp_with_wg:
|
auto_update_singboxp_with_wg:
|
||||||
needs: check_version
|
needs: check_version
|
||||||
if: ${{ needs.check_version.outputs.version_new != needs.check_version.outputs.version_old }}
|
env:
|
||||||
|
VERSION_NEW: ${{ needs.check_version.outputs.version_new }}
|
||||||
|
VERSION_OLD: ${{ needs.check_version.outputs.version_old }}
|
||||||
|
if: ${{ env.VERSION_NEW != env.VERSION_OLD }}
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user