File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
workspace/gh-workflow-gen Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 49
49
run : cargo +nightly fmt --check
50
50
- name : Cargo Clippy
51
51
run : cargo +nightly clippy --all-features --workspace -- -D warnings
52
- release :
53
- needs : build
54
- name : Release
55
- runs-on : ubuntu-latest
56
- steps :
57
52
- run : find . -name Cargo.toml
58
53
- name : Release Plz
59
54
60
55
with :
61
56
command : release-pr
62
- env :
63
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ fn main() {
30
30
. nightly ( )
31
31
. args ( "--all-features --workspace -- -D warnings" )
32
32
. name ( "Cargo Clippy" ) ,
33
- ) ;
33
+ )
34
+ . add_step ( Step :: run ( "find . -name Cargo.toml" ) )
35
+ . add_step ( ReleasePlz :: default ( ) . command ( Command :: ReleasePR ) ) ;
34
36
35
37
let event = Event :: default ( )
36
38
. push ( Push :: default ( ) . add_branch ( "main" ) )
@@ -42,18 +44,11 @@ fn main() {
42
44
. add_branch ( "main" ) ,
43
45
) ;
44
46
45
- let release = Job :: new ( "Release" )
46
- . add_github_token ( )
47
- . add_step ( Step :: run ( "find . -name Cargo.toml" ) )
48
- . add_step ( ReleasePlz :: default ( ) . command ( Command :: ReleasePR ) )
49
- . needs ( "build" ) ;
50
-
51
47
Workflow :: new ( "Build and Test" )
52
48
. add_env ( flags)
53
49
. permissions ( Permissions :: read ( ) )
54
50
. on ( event)
55
51
. add_job ( "build" , job)
56
- . add_job ( "release" , release)
57
52
. generate ( )
58
53
. unwrap ( ) ;
59
54
}
You can’t perform that action at this time.
0 commit comments