There was an error while loading. Please reload this page.
1 parent 680119e commit 882b7a2Copy full SHA for 882b7a2
1 file changed
.github/workflows/nightly-linux.yml
@@ -16,13 +16,13 @@ jobs:
16
with:
17
submodules: true
18
19
- - name: Print latest commit
20
- run: echo ${{ github.sha }}
21
-
22
- - id: should_run
+ - name: check latest commit is less than a day
+ id: should_run
23
continue-on-error: true
24
- name: check latest commit is less than a day
25
- run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
+ run: |
+ export latest_commit="`git log -1 --format='%H'`"
+ echo "Latest commit: ${latest_commit}"
+ test -z $(git rev-list --after="24 hours" ${latest_commit}) && echo "should_run=false" >> $GITHUB_OUTPUT
26
27
build:
28
needs: [check_changes]
0 commit comments