fix: use submodules: true for checkout
This commit is contained in:
@@ -19,17 +19,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Setup SSH for submodules
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts
|
||||
git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/"
|
||||
git submodule update --init --recursive
|
||||
ls -la app/ # Debug
|
||||
submodules: true
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||
@@ -68,17 +58,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
||||
with:
|
||||
submodules: false
|
||||
|
||||
- name: Setup SSH for submodules
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan git.datadunia.com >> ~/.ssh/known_hosts
|
||||
git config --global url."git@git.datadunia.com:".insteadOf "https://git.datadunia.com/"
|
||||
git submodule update --init --recursive
|
||||
ls -la app/ # Debug
|
||||
submodules: true
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
||||
@@ -116,7 +96,7 @@ jobs:
|
||||
run: |
|
||||
git config user.name "Gitea Actions"
|
||||
git config user.email "actions@gitea.com"
|
||||
git remote set-url origin "https://${{ secrets.USERNAME }}:${{ secrets.TOKEN }}@${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||
# Removed credentials-in-URL to comply with security guidelines
|
||||
git add latest.json
|
||||
git commit -m "Update latest.json for release ${{ gitea.ref_name }} [skip ci]" || echo "No changes to commit"
|
||||
git push origin main
|
||||
|
||||
Reference in New Issue
Block a user