mirror of
https://github.com/wiiu-env/PayloadLoaderInstaller.git
synced 2024-11-23 10:19:21 +01:00
Fix checking out the submodules in the CI
This commit is contained in:
parent
81f72440f0
commit
5c5b657247
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -6,12 +6,18 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
|
||||
build-binary:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
- name: Checkout submodules using a PAT
|
||||
run: |
|
||||
git config --file .gitmodules --get-regexp url | while read url; do
|
||||
git config --file=.gitmodules $(echo "$url" | sed -E "s/git@github.com:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
|
||||
done
|
||||
git submodule sync
|
||||
git submodule update --init --recursive
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
7
.github/workflows/pr.yml
vendored
7
.github/workflows/pr.yml
vendored
@ -7,6 +7,13 @@ jobs:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout submodules using a PAT
|
||||
run: |
|
||||
git config --file .gitmodules --get-regexp url | while read url; do
|
||||
git config --file=.gitmodules $(echo "$url" | sed -E "s/git@github.com:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
|
||||
done
|
||||
git submodule sync
|
||||
git submodule update --init --recursive
|
||||
- name: build binary
|
||||
run: |
|
||||
docker build . -t builder
|
||||
|
Loading…
Reference in New Issue
Block a user