diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index 29802e12..f6c8c08d 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -14,14 +14,14 @@ jobs: schedule: runs-on: ubuntu-latest outputs: - run: ${{ steps.check.outputs.run }} + run: ${{ steps.schedule.outputs.run }} steps: - uses: actions/checkout@v4 - name: Check for any commits since last week id: schedule run: | commits="$(git log --format=%H --since='1 week ago')" - if [ -n "$commits" ]; then + if [ -z "$commits" ]; then echo "run=true" >> $GITHUB_OUTPUT else echo "run=false" >> $GITHUB_OUTPUT