mirror of
https://github.com/troglobit/finit.git
synced 2026-11-14 19:03:16 +00:00
.github: fix and simplify weekly distcheck job
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
2e5b97c8b2
commit
13f1359b3a
1 file changed
+3
-4
@@ -15,18 +15,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Check for any commits since last week
|
- name: Check for any commits since last week
|
||||||
id: check
|
|
||||||
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 [ -n "$commits" ]; then
|
||||||
echo run=true >> $GITHUB_OUTPUT
|
echo "run=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo run=false >> $GITHUB_OUTPUT
|
echo "run=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
distcheck:
|
distcheck:
|
||||||
needs: schedule
|
needs: schedule
|
||||||
if: ${{ needs.schedule.check.outputs.run == 'true' }}
|
if: ${{ needs.schedule.outputs.run == "true" }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
Reference in new issue
Block a user