Skip to content

Commit b82f7dc

Browse files
authored
chore: cargo-denyを復活させ、mainブランチ上で動かす (VOICEVOX#855)
表題の通り。 `on.pull_request`を消したので、マージ後にCIが落ちる可能性が出てくる。た だそれに関しては、一番ライブラリを出し入れするであろう @qryxip が手元で `cargo deny check`することでなんとかする。 「 @qryxip とRenovateからのPR」にだけ反応するようにするという手もある が、今後問題が起きてから考えることにする。 Refs: VOICEVOX#333
1 parent f61890f commit b82f7dc

File tree

2 files changed

+121
-140
lines changed

2 files changed

+121
-140
lines changed

.github/workflows/cargo-deny.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: cargo-deny
22
on:
33
push:
4-
pull_request:
5-
defaults:
6-
run:
7-
shell: bash
4+
branches:
5+
- main
86
jobs:
97
cargo-deny:
108
runs-on: ubuntu-20.04
@@ -13,11 +11,6 @@ jobs:
1311
- name: Install cargo-binstall
1412
uses: taiki-e/install-action@cargo-binstall
1513
- name: Install cargo-deny
16-
run: cargo binstall cargo-deny@^0.14 --no-confirm --log-level debug
14+
run: cargo binstall cargo-deny@^0.16 --no-confirm --log-level debug
1715
- name: cargo-deny
18-
run: |
19-
if ${{ !!github.event.release }}; then
20-
cargo deny --all-features check
21-
else
22-
cargo deny --all-features check -W denied
23-
fi
16+
run: cargo deny --all-features check

0 commit comments

Comments
 (0)