[Actions] Fix nightly workflow changes detection.

This commit is contained in:
Kuba Szczodrzyński 2021-04-06 18:20:09 +02:00
parent e04bd75f1f
commit dd254d4bec
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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 }}