Skip to content

Commit 2942dfc

Browse files
committed
Update apt before installing depenencies for github/action
1 parent 84ca277 commit 2942dfc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/code-check.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Prepare
15-
run: sudo apt-get install -y cppcheck
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y cppcheck
1618
- name: Code static check for config
1719
run: sh ./code-check/code-static-check.sh ./kubernetes/config/
1820
- name: Code static check for examples
@@ -22,7 +24,9 @@ jobs:
2224
steps:
2325
- uses: actions/checkout@v2
2426
- name: Prepare
25-
run: sudo apt-get install -y indent
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y indent
2630
- name: Code style check for config
2731
run: |
2832
find ./kubernetes/config/ -type f -regextype posix-extended -regex ".*\.(c|h)" -exec sh ./code-check/code-style-check.sh {} \;

0 commit comments

Comments
 (0)