Skip to content

Commit

Permalink
[Actions] Fix nightly workflow changes detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba2k2 committed Apr 6, 2021
1 parent e04bd75 commit dd254d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/utils/bump_nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
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]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-nightly-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit dd254d4

Please sign in to comment.