From 65276aa8455eab98675656c51dd3de225fbd3cbc Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 3 Jan 2023 00:40:21 +0100 Subject: [PATCH] Fix github actions --- .github/workflows/platform_natives.yaml | 6 ++++-- .github/workflows/tdapi_file.yaml | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/platform_natives.yaml b/.github/workflows/platform_natives.yaml index fc85297..e0f8757 100644 --- a/.github/workflows/platform_natives.yaml +++ b/.github/workflows/platform_natives.yaml @@ -2,7 +2,9 @@ name: Docker multi-arch build on: push: - pull_request: + branches: + - master + - develop jobs: build: @@ -143,7 +145,7 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Setup Java (Release) - if: github.ref == 'refs/heads/master' + if: github.ref != 'refs/heads/develop' uses: actions/setup-java@v3 with: java-version: 11 diff --git a/.github/workflows/tdapi_file.yaml b/.github/workflows/tdapi_file.yaml index ce2cbfc..5e8e3a6 100644 --- a/.github/workflows/tdapi_file.yaml +++ b/.github/workflows/tdapi_file.yaml @@ -2,6 +2,9 @@ name: Generate TdApi.java on: push: + branches: + - master + - develop jobs: build: @@ -28,7 +31,7 @@ jobs: with: submodules: "recursive" - name: Setup Java (Snapshot) - if: github.ref != 'refs/heads/master' + if: github.ref == 'refs/heads/develop' uses: actions/setup-java@v3 with: java-version: 17 @@ -37,7 +40,7 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Setup Java (Release) - if: github.ref == 'refs/heads/master' + if: github.ref != 'refs/heads/develop' uses: actions/setup-java@v3 with: java-version: 17