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 69c1c11 commit 0f82a21
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/hugo-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ jobs:
- markdown-spell-check

steps:
- uses: actions/checkout@v1
with:
submodules: true
- 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: Setup Hugo
uses: peaceiris/actions-hugo@v2.3.0
Expand Down

0 comments on commit 0f82a21

Please sign in to comment.