diff --git a/.github/utils/bump_nightly.py b/.github/utils/bump_nightly.py index 888a087f..88b4798c 100644 --- a/.github/utils/bump_nightly.py +++ b/.github/utils/bump_nightly.py @@ -26,7 +26,7 @@ if __name__ == "__main__": exit(-1) with requests.get( - f"https://api.github.com/repos/{repo}/actions/runs?per_page=1&status=success" + f"https://api.github.com/repos/{repo}/actions/runs?per_page=5&status=success" ) as r: data = json.loads(r.text) runs = [run for run in data["workflow_runs"] if run["head_sha"] == sha] diff --git a/.github/workflows/build-nightly-apk.yml b/.github/workflows/build-nightly-apk.yml index ada926f0..bca267be 100644 --- a/.github/workflows/build-nightly-apk.yml +++ b/.github/workflows/build-nightly-apk.yml @@ -46,7 +46,7 @@ jobs: runs-on: self-hosted needs: - prepare - if: needs.prepare.outputs.hasNewChanges + if: ${{ needs.prepare.outputs.hasNewChanges == 'true' }} outputs: androidHome: ${{ env.ANDROID_HOME }} androidSdkRoot: ${{ env.ANDROID_SDK_ROOT }}