Skip to content

Commit 78fdf2f

Browse files
authored
chore: upgrade workflows (doocs#1580)
1 parent 7fa0e39 commit 78fdf2f

File tree

6 files changed

+7
-25
lines changed

6 files changed

+7
-25
lines changed

.github/workflows/black-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: jpetrucciani/black-check@master
1919
with:
2020
black_flags: '-S'
Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,17 @@
11
name: clang-format-linter
22

33
on:
4-
pull_request_target:
5-
types:
6-
- opened
7-
- edited
8-
- synchronize
9-
branches:
10-
- main
4+
push: {}
5+
pull_request: {}
116

127
jobs:
138
build:
149
runs-on: ubuntu-latest
1510

1611
steps:
17-
- uses: actions/checkout@v3
18-
19-
- uses: DoozyX/clang-format-lint-action@v0.13
12+
- uses: actions/checkout@v4
13+
- uses: DoozyX/clang-format-lint-action@v0.16.2
2014
with:
2115
source: '.'
2216
extensions: 'c,cpp,java'
23-
clangFormatVersion: 12
24-
inplace: True
25-
26-
- uses: EndBug/add-and-commit@v9
27-
with:
28-
committer_name: yanglbme
29-
committer_email: contact@yanglibin.info
30-
message: 'chore: format code with clang-format'
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
17+
clangFormatVersion: 16

.github/workflows/compress.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
github.event.pull_request.head.repo.full_name == github.repository)
3030
steps:
3131
- name: Checkout Branch
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Compress Images
3434
id: calibre
3535
uses: calibreapp/image-actions@main

solution/0400-0499/0449.Serialize and Deserialize BST/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ public class Codec {
191191
*/
192192
class Codec {
193193
public:
194-
195194
// Encodes a tree to a single string.
196195
string serialize(TreeNode* root) {
197196
if (!root) {

solution/0400-0499/0449.Serialize and Deserialize BST/README_EN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ public class Codec {
166166
*/
167167
class Codec {
168168
public:
169-
170169
// Encodes a tree to a single string.
171170
string serialize(TreeNode* root) {
172171
if (!root) {

solution/0400-0499/0449.Serialize and Deserialize BST/Solution.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
class Codec {
1111
public:
12-
1312
// Encodes a tree to a single string.
1413
string serialize(TreeNode* root) {
1514
if (!root) {

0 commit comments

Comments
 (0)