Skip to content

Commit 2da6da9

Browse files
bors[bot]robyoung
andauthored
Merge #46
46: update github actions for new main r=therealprof a=robyoung This also adds in the `labeled` and `unlabeled` types for the changelog workflow so that it is re-run when the `no changelog` label is added. I had some difficulty with the changelog workflow. It doesn't always seem to correctly detect if the PR has the `no changelog` label. Co-authored-by: Rob Young <[email protected]>
2 parents 1547294 + 2fabb21 commit 2da6da9

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/changelog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
on:
22
pull_request_target:
3+
types: [opened, synchronize, reopened, labeled, unlabeled]
34

45
name: Changelog check
56

.github/workflows/ci.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main, staging, trying]
66
pull_request:
77

88
jobs:
@@ -40,5 +40,3 @@ jobs:
4040

4141
- name: build examples
4242
run: cargo build --examples --target=thumbv6m-none-eabi
43-
44-

.github/workflows/clippy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: [main, staging, trying]
44
pull_request:
55

66
name: Clippy check
@@ -18,4 +18,4 @@ jobs:
1818
- uses: actions-rs/clippy-check@v1
1919
with:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21-
args: --examples
21+
args: --examples -- -D warnings

.github/workflows/rustfmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [ staging, trying, master ]
3+
branches: [main, staging, trying]
44
pull_request:
55

66
name: Code formatting check

0 commit comments

Comments
 (0)