From 412ae9774c773fe52fe5a69840a6cb1eeecab88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=A1=A0=E1=A0=B5=E1=A1=A0=E1=A1=B3=20=E1=A1=A0=E1=A0=B5?= =?UTF-8?q?=E1=A1=A0=20=E1=A0=AE=E1=A0=A0=E1=A0=A8=E1=A1=A9=E1=A0=8B?= =?UTF-8?q?=E1=A0=A0=E1=A0=A8?= <125150101+UjuiUjuMandan@users.noreply.github.com> Date: Sat, 1 Feb 2025 09:32:19 +0800 Subject: [PATCH] Update workflows (#107) * Update all other dependencies in tidy.yml * check update for golang * test build * Revert "Update all other dependencies in tidy.yml" This reverts commit 6fc93ca101228e55c2618ff5f64c9e26f7d4c921. * remove on:push: for tidy.yml --- .github/workflows/main.yml | 9 ++++++++- .github/workflows/tidy.yml | 5 +---- 2 files changed, 9 insertions(+), 5 deletions(-) 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'