diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d26c82..741e912 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,8 +4,14 @@ on: workflow_dispatch: inputs: release_tag: - required: true + required: false type: string + pull_request: + branches: + - main + push: + branches: + - main jobs: build: runs-on: ubuntu-latest @@ -55,6 +61,7 @@ jobs: ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} - name: Upload AndroidLibXrayLite to release + if: github.event.inputs.release_tag != '' uses: svenstaro/upload-release-action@v2 with: file: ./libv2ray*r diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index ed82c2f..54dc2fa 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -1,9 +1,6 @@ name: Check and Update xray-core on: - push: - branches: - - main schedule: - cron: '0 0 * * *' workflow_dispatch: @@ -50,7 +47,7 @@ jobs: if: env.needs_update == 'true' uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version: 'stable' - name: Update and commit changes if: env.needs_update == 'true'