mirror of
https://github.com/troglobit/finit.git
synced 2026-11-25 20:28:23 +00:00
.github: fix logic in weekly workflow
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user