diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 01fc0dc..bae42c5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -24,7 +24,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + env: + GITEA_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} + run: | + git clone https://glennigen:${GITEA_TOKEN}@git.itedb.dk/glennigen/pokedexter.git . + git config advice.detachedHead false + git checkout ${{ github.sha }} - name: Setup Python 3.12 uses: actions/setup-python@v5 @@ -57,7 +62,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + env: + GITEA_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} + run: | + git clone https://glennigen:${GITEA_TOKEN}@git.itedb.dk/glennigen/pokedexter.git . + git config advice.detachedHead false + git checkout ${{ github.sha }} - name: Build backend image run: |