Skip to content

Schedule/dispatch

Schedule/dispatch #1

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

View workflow run for this annotation

GitHub Actions / Schedule/dispatch

Invalid workflow file

The workflow is not valid. In .github/workflows/schedule-dispatch.yml (Line: 30, Col: 11): Error from called workflow szkolny-eu/szkolny-android/.github/workflows/_build.yml@develop (Line: 135, Col: 19): Unrecognized named-value: 'nightly'. Located at position 1 within expression: nightly && secrets.SSH_PATH_NIGHTLY || secrets.SSH_PATH_RELEASE In .github/workflows/schedule-dispatch.yml (Line: 30, Col: 11): Error from called workflow szkolny-eu/szkolny-android/.github/workflows/_build.yml@develop (Line: 168, Col: 19): Unrecognized named-value: 'nightly'. Located at position 1 within expression: nightly && secrets.FIREBASE_GROUPS_NIGHTLY || secrets.FIREBASE_GROUPS_RELEASE
with:
nightly: true
build-apk: true
release-ssh: true
release-firebase: true
release-discord: true
secrets: inherit