fix: manual clone with http.extraheader reset for host mode
This commit is contained in:
@@ -16,10 +16,13 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
goarch: [amd64, arm64]
|
goarch: [amd64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
# Checkout step removed due to checkout failures. Replaced with manual clone below.
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
- name: Clone repository with auth
|
||||||
with:
|
run: |
|
||||||
submodules: true
|
git config --local http.extraheader "Authorization: Bearer ${{ gitea.token }}"
|
||||||
|
git clone --recursive https://${{ gitea.server_url }}/hainzero/WGRplane.git app
|
||||||
|
git config --unset http.extraheader # Reset after use
|
||||||
|
ls -la app # Debug
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
|
||||||
@@ -55,10 +58,13 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
# Checkout step removed due to checkout failures. Replaced with manual clone below.
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
|
- name: Clone repository with auth
|
||||||
with:
|
run: |
|
||||||
submodules: true
|
git config --local http.extraheader "Authorization: Bearer ${{ gitea.token }}"
|
||||||
|
git clone --recursive https://${{ gitea.server_url }}/hainzero/WGRplane.git app
|
||||||
|
git config --unset http.extraheader # Reset after use
|
||||||
|
ls -la app # Debug
|
||||||
|
|
||||||
- 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