Skip to content

Commit

Permalink
Merge pull request git-lfs#4795 from bk2204/actions-checkout-v2
Browse files Browse the repository at this point in the history
.github/workflows: switch to actions/checkout@v2
  • Loading branch information
bk2204 authored Jan 3, 2022
2 parents eb0dc94 + dea8b4e commit e3893b1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 12 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
go: ['1.17.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with:
Expand All @@ -37,7 +39,9 @@ jobs:
go: ['1.13.x', '1.14.x']
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
Expand All @@ -46,7 +50,9 @@ jobs:
name: Build on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with:
Expand Down Expand Up @@ -96,7 +102,9 @@ jobs:
os: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git clone -b master https://github.com/git/git.git "$HOME/git"
- run: script/build-git "$HOME/git"
- run: GIT_DEFAULT_HASH=sha256 script/cibuild
Expand All @@ -107,15 +115,19 @@ jobs:
os: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git clone -b v2.0.0 https://github.com/git/git.git "$HOME/git"
- run: script/build-git "$HOME/git"
- run: script/cibuild
build-docker:
name: Build Linux packages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
- run: (cd "$HOME/build-dockers" && ./build_dockers.bsh)
Expand All @@ -128,7 +140,9 @@ jobs:
arch: [arm64]
container: [debian_11]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
matrix:
go: ['1.17.x']
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with:
Expand Down Expand Up @@ -56,7 +58,9 @@ jobs:
matrix:
go: ['1.17.x']
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with:
Expand Down Expand Up @@ -90,7 +94,9 @@ jobs:
matrix:
go: ['1.17.x']
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- uses: actions/setup-go@v2
with:
Expand All @@ -116,7 +122,9 @@ jobs:
name: Build Linux Packages
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- run: gem install packagecloud-ruby
- run: git clone https://github.com/git-lfs/build-dockers.git "$HOME/build-dockers"
Expand All @@ -133,7 +141,9 @@ jobs:
matrix:
arch: [arm64]
container: [debian_11]
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-ruby@v1
- run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
Expand Down

0 comments on commit e3893b1

Please sign in to comment.