.github: fix logic in weekly workflow

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-01-01 09:51:02 +01:00
1 parent 06889cc014
commit 9ce95fe8c0
1 file changed
+2 -2
+2 -2
View File
@@ -14,14 +14,14 @@ jobs:
schedule: schedule:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
run: ${{ steps.check.outputs.run }} run: ${{ steps.schedule.outputs.run }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Check for any commits since last week - name: Check for any commits since last week
id: schedule id: schedule
run: | run: |
commits="$(git log --format=%H --since='1 week ago')" commits="$(git log --format=%H --since='1 week ago')"
if [ -n "$commits" ]; then if [ -z "$commits" ]; then
echo "run=true" >> $GITHUB_OUTPUT echo "run=true" >> $GITHUB_OUTPUT
else else
echo "run=false" >> $GITHUB_OUTPUT echo "run=false" >> $GITHUB_OUTPUT