mirror of
https://github.com/troglobit/finit.git
synced 2026-12-05 22:08:20 +00:00
.github: fix variable sharing between jobs
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
eb6291c943
commit
4edfa9859e
1 file changed
+2
-2
@@ -15,6 +15,7 @@ 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: 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 [ -n "$commits" ]; then
|
||||||
@@ -22,10 +23,9 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "run=false" >> $GITHUB_OUTPUT
|
echo "run=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
distcheck:
|
distcheck:
|
||||||
needs: schedule
|
needs: schedule
|
||||||
if: ${{ needs.schedule.outputs.run == 'true' }}
|
if: ${{ needs.schedule.outputs.run }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
Reference in new issue
Block a user