Skip to content

Commit 3d0a598

Browse files
authored
Update github actions/checkout version to version 4 (TheAlgorithms#546)
1 parent b4cf132 commit 3d0a598

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ jobs:
77
name: cargo fmt
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: cargo fmt
1212
run: cargo fmt --all -- --check
1313

1414
clippy:
1515
name: cargo clippy
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: cargo clippy
2020
run: cargo clippy --all --all-targets -- -D warnings
2121

2222
test:
2323
name: cargo test
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727
- name: cargo test
2828
run: cargo test

.github/workflows/directory_workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ jobs:
66
name: DIRECTORY.md
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1 # v2 is broken for git diff
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
1012
- uses: actions/setup-python@v4
1113
- name: Setup Git Specs
1214
run: |
@@ -20,5 +22,4 @@ jobs:
2022
run: |
2123
git add DIRECTORY.md
2224
git commit -m "updating DIRECTORY.md" || true
23-
git diff DIRECTORY.md
2425
git push --force origin HEAD:$GITHUB_REF || true

0 commit comments

Comments
 (0)