forked from mtusi2026/mtusi2026lab2
fix: use public Gitea checkout URL
This commit is contained in:
@@ -16,7 +16,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout exact commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git
|
||||
git fetch --depth=1 origin ${{ github.sha }}
|
||||
git checkout --detach FETCH_HEAD
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
@@ -71,8 +76,8 @@ jobs:
|
||||
|
||||
- name: Container logs
|
||||
if: failure()
|
||||
run: docker compose logs --no-color --tail=200
|
||||
run: if [ -f compose.yaml ]; then docker compose logs --no-color --tail=200; fi
|
||||
|
||||
- name: Stop local stack
|
||||
if: always()
|
||||
run: docker compose --profile tests down -v --remove-orphans
|
||||
run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi
|
||||
|
||||
@@ -17,7 +17,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout exact commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git
|
||||
git fetch --depth=1 origin ${{ github.sha }}
|
||||
git checkout --detach FETCH_HEAD
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
@@ -56,7 +61,7 @@ jobs:
|
||||
|
||||
- name: Stop release stack
|
||||
if: always()
|
||||
run: docker compose --profile tests down -v --remove-orphans
|
||||
run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi
|
||||
|
||||
- name: Configure SSH
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user