Skip to content

Commit

Permalink
CI: update submodules before running actions/checkout
Browse files Browse the repository at this point in the history
This action runs "git submodule foreach" early which will fail if a
submodule has been deleted but is still present in the repo (see
actions/checkout#354).
  • Loading branch information
smarter committed Mar 24, 2021
1 parent 4b32aeb commit 0bda3c7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
- name: Set JDK 16 as default
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -97,6 +100,9 @@ jobs:
- name: Set JDK 16 as default
run: echo "/usr/lib/jvm/java-16-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -190,6 +196,9 @@ jobs:
)"

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -230,6 +239,9 @@ jobs:
)"

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -270,6 +282,9 @@ jobs:
)"

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -310,6 +325,9 @@ jobs:
)"

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -358,6 +376,9 @@ jobs:
- name: Set JDK 8 as default
run: echo "/usr/lib/jvm/java-8-openjdk-amd64/bin" >> $GITHUB_PATH

- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -394,6 +415,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -428,6 +452,9 @@ jobs:
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -474,6 +501,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER_ORGSCALALANG }}

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -556,6 +586,9 @@ jobs:
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down Expand Up @@ -601,6 +634,9 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}

steps:
- name: Update submodules
run: git submodule sync && git submodule update --init --recursive --jobs 7 || true

- name: Checkout cleanup script
uses: actions/checkout@v2

Expand Down

0 comments on commit 0bda3c7

Please sign in to comment.