mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
.github: fix and simplify weekly distcheck job
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -15,18 +15,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check for any commits since last week
|
||||
id: check
|
||||
run: |
|
||||
commits="$(git log --format=%H --since='1 week ago')"
|
||||
if [ -n "$commits" ]; then
|
||||
echo run=true >> $GITHUB_OUTPUT
|
||||
echo "run=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo run=false >> $GITHUB_OUTPUT
|
||||
echo "run=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
distcheck:
|
||||
needs: schedule
|
||||
if: ${{ needs.schedule.check.outputs.run == 'true' }}
|
||||
if: ${{ needs.schedule.outputs.run == "true" }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
|
||||
Reference in New Issue
Block a user