Update CI workflow to fetch submodules during checkout and fix GITHUB_TOKEN issue

This commit is contained in:
2024-09-24 17:51:46 +07:00
parent d9c27dba89
commit 2988f23a2e

View File

@@ -18,8 +18,9 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: true # Recursively clone submodules submodules: true # Recursively clone submodules
token: ${{ secrets.GITHUB_TOKEN }} # Use built-in GITHUB_TOKEN for private submodules
fetch-depth: 0 # Fetch full history to avoid issues with shallow clones fetch-depth: 0 # Fetch full history to avoid issues with shallow clones
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Pull the latest version of base images and rebuild without cache # Pull the latest version of base images and rebuild without cache
- name: Build and deploy - name: Build and deploy