From 7269f9ab85eab466ba6b168e570c007b7b6f9f10 Mon Sep 17 00:00:00 2001 From: kangping Date: Tue, 8 Dec 2020 16:03:32 +0800 Subject: [PATCH] tmp commit --- .github/workflows/android-app-release.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android-app-release.yml b/.github/workflows/android-app-release.yml index 7982698b3..7c7d256b5 100644 --- a/.github/workflows/android-app-release.yml +++ b/.github/workflows/android-app-release.yml @@ -32,7 +32,7 @@ name: Android App Release on: - pull_request: + pull_request_target: types: [assigned, opened, synchronize, reopened, closed] jobs: @@ -41,7 +41,11 @@ jobs: # We run this job only when the PR branch starts with 'android-release/'. if: startsWith(github.head_ref, 'android-release/') steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - name: Check Release Version id: check_release_version run: | @@ -56,7 +60,8 @@ jobs: fi echo "::set-output name=release_version::${gradle_version}" - echo "::set-output name=pr_merged::${{ github.event.pull_request.merged }}" + echo "::set-output name=pr_merged::${{ github.event.pull_request_target.merged }}" + echo "::set-output name=pr_merged::true" - name: Bootstrap run: | script/bootstrap.sh