core_easy_update #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: core_easy_update | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag1: | |
| description: 'meta or singbox or singboxr' | |
| required: true | |
| type: string | |
| jobs: | |
| get_version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.get_version.outputs.version }} | |
| steps: | |
| - id: get_version | |
| run: | | |
| [ "${{ inputs.tag1 }}" = meta ] && repo="MetaCubeX/mihomo" | |
| [ "${{ inputs.tag1 }}" = singbox ] && repo="SagerNet/sing-box" | |
| [ "${{ inputs.tag1 }}" = singboxr ] && repo="SagerNet/sing-box" | |
| latest_tag=$(curl -s "https://api.github.com/repos/$repo/releases/latest" | jq -r .tag_name) | |
| [ "${{ inputs.tag1 }}" = singboxr ] && latest_tag="${latest_tag}-reF1nd" | |
| echo "version=$latest_tag" >> $GITHUB_OUTPUT | |
| update_meta_upx: | |
| if: github.event.inputs.tag1 == 'meta' | |
| needs: get_version | |
| permissions: write-all | |
| uses: juewuy/ShellCrash/.github/workflows/update_meta_core.yaml@dev | |
| with: | |
| tag1: MetaCubeX/mihomo | |
| tag2: ${{ needs.get_version.outputs.version }} | |
| tag4: meta | |
| tag5: "" | |
| tag6: upx | |
| secrets: inherit | |
| update_meta_tar: | |
| if: github.event.inputs.tag1 == 'meta' | |
| needs: [get_version, update_meta_upx] | |
| permissions: write-all | |
| uses: juewuy/ShellCrash/.github/workflows/update_meta_core.yaml@dev | |
| with: | |
| tag1: MetaCubeX/mihomo | |
| tag2: ${{ needs.get_version.outputs.version }} | |
| tag4: meta | |
| tag5: "" | |
| tag6: tar.gz | |
| secrets: inherit | |
| update_singboxr_upx: | |
| if: github.event.inputs.tag1 == 'singboxr' | |
| needs: get_version | |
| permissions: write-all | |
| uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev | |
| with: | |
| tag1: reF1nd/sing-box | |
| tag2: ${{ needs.get_version.outputs.version }} | |
| tag4: singboxr | |
| tag5: with_quic,with_utls,with_clash_api | |
| tag6: upx | |
| secrets: inherit | |
| update_singboxr_tar: | |
| if: github.event.inputs.tag1 == 'singboxr' | |
| needs: [get_version, update_singboxr_upx] | |
| permissions: write-all | |
| uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev | |
| with: | |
| tag1: reF1nd/sing-box | |
| tag2: ${{ needs.get_version.outputs.version }} | |
| tag4: singboxr | |
| tag5: with_gvisor,with_quic,with_wireguard,with_utls,with_clash_api,with_tailscale | |
| tag6: tar.gz | |
| secrets: inherit | |
| update_singbox_upx: | |
| if: github.event.inputs.tag1 == 'singbox' | |
| needs: get_version | |
| permissions: write-all | |
| uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev | |
| with: | |
| tag1: SagerNet/sing-box | |
| tag2: ${{ needs.get_version.outputs.version }} | |
| tag4: singbox | |
| tag5: with_quic,with_utls,with_clash_api | |
| tag6: upx | |
| secrets: inherit | |