forked from github/szkolny
[Actions] Fix nightly workflow changes detection.
This commit is contained in:
parent
e04bd75f1f
commit
dd254d4bec
2
.github/utils/bump_nightly.py
vendored
2
.github/utils/bump_nightly.py
vendored
@ -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]
|
||||
|
2
.github/workflows/build-nightly-apk.yml
vendored
2
.github/workflows/build-nightly-apk.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user