File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 1717 steps :
1818 - name : Checkout Code
1919 uses : actions/checkout@v4
20+ - name : Get current git info
21+ if : github.event_name == 'schedule'
22+ id : git_info
23+ run : |
24+ echo "current_commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
25+ echo "current_branch=$(git branch --show-current)" >> $GITHUB_OUTPUT
26+ - name : Get last successful commit
27+ if : github.event_name == 'schedule'
28+ id : last_successful_commit
29+ uses : nrwl/last-successful-commit-action@v1
30+ with :
31+ branch : ${{ steps.git_info.outputs.current_branch }}
32+ workflow_id : conan.yml
33+ - name : Cancel scheduled build with no new commits
34+ uses : nrwl/last-successful-commit-action@v1
35+ if : |
36+ github.event_name == 'schedule' &&
37+ steps.git_info.outputs.current_commit == steps.last_successful_commit.outputs.commit_hash
2038
2139 build_macos :
2240 if : github.repository_owner == 'viamrobotics'
You can’t perform that action at this time.
0 commit comments