diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index fb114088..51a9c999 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -23,9 +23,9 @@ jobs: uses: actions/checkout@v6 with: lfs: false -# - name: Remove buggy pre-push hook -# run: | -# rm -f .git/hooks/pre-push + - name: Remove buggy pre-push hook + run: | + rm -f .git/hooks/pre-push - name: Bump version and push tag id: bump-tag uses: anothrNick/github-tag-action@v1 @@ -52,17 +52,29 @@ jobs: lfs: false persist-credentials: true +# - name: Checkout LFS +# run: | +# git lfs install --local +# echo ${{ gitea.server_url }} +# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) +# echo ${{ gitea.repository }} +# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) +# echo sandwich +# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader +# echo teub +# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" +# echo bite +# git lfs pull + - name: Checkout LFS run: | git lfs install --local - echo ${{ gitea.server_url }} + echo toto AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - echo ${{ gitea.repository }} - AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) - echo sandwich - git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader - echo teub - git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + echo tata + git config --local --unset http.${{ github.server_url }}/.extraheader + echo http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader + git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" echo bite git lfs pull @@ -99,16 +111,20 @@ jobs: - name: Install curl and zip run: | apt update && apt -y install curl zip - - name: Install node 24 - run: | - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash - \. "$HOME/.nvm/nvm.sh" - nvm install 24 - node -v - - - name: Test node version - run: | - node -v +# - name: Install node 24 +# run: | +# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash +# \. "$HOME/.nvm/nvm.sh" +# nvm install 24 +# node -v +# +# - name: Test node version +# run: | +# node -v + - name: Install node + uses: actions/setup-node@v6 + with: + node-version: 24 - name: Checkout uses: actions/checkout@v6