You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Nightly Check
v0.2.0
Pre-release
🌓 GitHub action that checks for changes between nightly CI jobs
This example is taken directly from moducate/moducate's nightly-docker GitHub action.
name: "Nightly Docker Image"
on:
schedule:
- cron: "0 2 * * *"
jobs:
check:
runs-on: ubuntu-latest
steps:
- id: nightly-check
name: Check for changes since last nightly
uses: lukecarr/[email protected]
nightly:
runs-on: ubuntu-latest
needs: check
if: ${{ needs.check.outputs.changes == 'false' }}
steps:
# ... your steps here
In the above example, we declare the check
job which runs this action. The nightly
job will then subsequently run if no changes have been made to the repository in the past 24 hours.