fix: use git pull + submodule update instead of actions/checkout
This commit is contained in:
@@ -17,18 +17,11 @@ jobs:
|
|||||||
goarch: [amd64, arm64]
|
goarch: [amd64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
||||||
with:
|
|
||||||
submodules: false
|
|
||||||
|
|
||||||
- name: Checkout submodules with auth
|
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git config --global http.extraHeader "Authorization: Bearer ${{ gitea.token }}"
|
||||||
git config submodule.app.url "https://${{ secrets.USERNAME }}:${{ secrets.TOKEN }}@git.datadunia.com/hainzero/WGRplane.git"
|
git pull origin ${{ gitea.ref_name }}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
ls -la app/ # Debug: verify submodule
|
||||||
- name: Debug - List app directory
|
|
||||||
run: ls -la app/
|
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
@@ -64,16 +57,12 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code manually
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
|
||||||
with:
|
|
||||||
submodules: false
|
|
||||||
|
|
||||||
- name: Checkout submodules with auth
|
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git config --global http.extraHeader "Authorization: Bearer ${{ gitea.token }}"
|
||||||
git config submodule.app.url "https://${{ secrets.USERNAME }}:${{ secrets.TOKEN }}@git.datadunia.com/hainzero/WGRplane.git"
|
git pull origin ${{ gitea.ref_name }}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
ls -la app/ # Debug: verify submodule
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
|
||||||
|
|||||||
Reference in New Issue
Block a user