Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 882b7a2

Browse files
committed
github: coalesce steps into one to fix issues with environment
1 parent 680119e commit 882b7a2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/nightly-linux.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
with:
1717
submodules: true
1818

19-
- name: Print latest commit
20-
run: echo ${{ github.sha }}
21-
22-
- id: should_run
19+
- name: check latest commit is less than a day
20+
id: should_run
2321
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"
22+
run: |
23+
export latest_commit="`git log -1 --format='%H'`"
24+
echo "Latest commit: ${latest_commit}"
25+
test -z $(git rev-list --after="24 hours" ${latest_commit}) && echo "should_run=false" >> $GITHUB_OUTPUT
2626
2727
build:
2828
needs: [check_changes]

0 commit comments

Comments
 (0)