Schedule/dispatch #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Schedule/dispatch | ||
on: | ||
schedule: | ||
# 23:30 UTC, 0:30 or 1:30 CET/CEST | ||
- cron: "30 23 * * *" | ||
workflow_dispatch: | ||
jobs: | ||
check: | ||
name: Check new changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
hasNewChanges: ${{ steps.nightly.outputs.hasNewChanges }} | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Install packages | ||
uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
requests | ||
- name: Check new changes | ||
id: nightly | ||
run: python $GITHUB_WORKSPACE/.github/utils/check_nightly.py $GITHUB_WORKSPACE | ||
build: | ||
name: Build nightly release (APK) | ||
needs: | ||
- check | ||
if: ${{ needs.prepare.outputs.hasNewChanges }} | ||
uses: szkolny-eu/szkolny-android/.github/workflows/_build.yml@develop | ||
Check failure on line 30 in .github/workflows/schedule-dispatch.yml GitHub Actions / Schedule/dispatchInvalid workflow file
|
||
with: | ||
nightly: true | ||
build-apk: true | ||
release-ssh: true | ||
release-firebase: true | ||
release-discord: true | ||
secrets: inherit |