Skip to content

Commit

Permalink
Upgrading actions/checkout from v1 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Dec 14, 2019
1 parent 85869fa commit 194acf6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ jobs:
DEBIAN_FRONTEND: noninteractive

steps:
- uses: actions/checkout@v1.1.0
with:
submodules: recursive
- uses: actions/checkout@v2

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Update repositories
run: sudo apt update
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ jobs:
DEBIAN_FRONTEND: noninteractive

steps:
- uses: actions/checkout@v1.1.0
with:
submodules: recursive
- uses: actions/checkout@v2

- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Update repositories
run: sudo apt update
Expand Down

0 comments on commit 194acf6

Please sign in to comment.