File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1414
1515jobs :
1616 build :
17+ if : >-
18+ github.event.workflow_run.conclusion == 'success' &&
19+ github.event.workflow_run.event == 'push' &&
20+ github.event.workflow_run.head_branch == 'main'
1721 runs-on : ubuntu-latest
1822 steps :
1923 - uses : actions/checkout@v4
2024 with :
21- fetch-depth : 2
25+ fetch-depth : 0
2226
2327 - name : Set up Rust
2428 uses : actions-rust-lang/setup-rust-toolchain@v1
3539 - name : Get previous version from main
3640 id : previous
3741 run : |
38- prev_ver=$(git show HEAD^ :Cargo.toml | grep '^version' | head -1 | sed 's/version = "\(.*\)"/\1/')
42+ prev_ver=$(git show origin/main :Cargo.toml | grep '^version' | head -1 | sed 's/version = "\(.*\)"/\1/')
3943 echo "version=$prev_ver" >> $GITHUB_OUTPUT
4044
4145 - name : Check for version change
You can’t perform that action at this time.
0 commit comments