Skip to content

Daily check for new commits in main #9

Daily check for new commits in main

Daily check for new commits in main #9

name: Daily check for new commits in main
on:
# Every day at 01:42 AM UTC.
schedule:
- cron: "42 01 * * *"
jobs:
daily-change-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for new commits in main and trigger actions
run: |
if [ -z "$(git log -n1 --since=yesterday --oneline)" ]; then
exit 0
fi
gh workflow run build_container.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}