fix: use submodules: true for checkout
Release / build (amd64) (push) Failing after 33s
Release / build (arm64) (push) Failing after 47s
Release / generate-latest-json (push) Has been skipped

This commit is contained in:
datadunia
2026-05-06 23:43:51 +07:00
parent c49964d4d4
commit 14742b4c27
+3 -23
View File
@@ -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