mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
.github: revise weekly check
For details, see https://stackoverflow.com/a/67527144/1708249 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
8bbae3d414
commit
a918f7497a
1 file changed
+7
-11
@@ -10,22 +10,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
schedule:
|
schedule:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
run: ${{ steps.check.outputs.run }}
|
||||||
steps:
|
steps:
|
||||||
- name: Create cache file
|
- uses: actions/checkout@v3
|
||||||
|
- name: Check for any commits since last week
|
||||||
|
id: check
|
||||||
run: |
|
run: |
|
||||||
mkdir weekly
|
echo '::set-output name=run::'$(test -n "$(git log --format=%H --since=1 week ago')" && echo 'true' || echo 'false')
|
||||||
echo ${{ github.sha }} > weekly/sha.txt
|
|
||||||
|
|
||||||
- name: Check SHA
|
|
||||||
id: sha
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: weekly/sha.txt
|
|
||||||
key: weekly-sha-${{ github.sha }}
|
|
||||||
|
|
||||||
distcheck:
|
distcheck:
|
||||||
needs: schedule
|
needs: schedule
|
||||||
if: ${{ needs.schedule.sha.outputs.cache-hit != 'true' }}
|
if: ${{ needs.schedule.check.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