diff --git a/.gitea/workflows/simplesbentocreation.yml b/.gitea/workflows/simplesbentocreation.yml index 021e077..8db9104 100644 --- a/.gitea/workflows/simplesbentocreation.yml +++ b/.gitea/workflows/simplesbentocreation.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Install dependencies run: | - apt-get update && apt-get install -y curl jq + apt-get update && apt-get install -y curl jq git - name: Check Upstream Latest Commit id: check @@ -46,15 +46,15 @@ jobs: echo "skip=false" >> $GITHUB_OUTPUT fi - - name: Checkout Upstream Code + # --- MUDANÇA AQUI: Usamos git clone manual para evitar erro de credencial --- + - name: Clone Upstream Code Manually if: steps.exists.outputs.skip == 'false' - uses: actions/checkout@v4 - with: - repository: alam00000/bentopdf - ref: main - # --- CORREÇÃO IMPORTANTE ABAIXO --- - # Força a action a buscar no GitHub.com em vez do seu servidor local - github-server-url: 'https://github.com' + run: | + # Limpa o diretório atual caso tenha lixo + rm -rf * .git + # Clona o repo público do GitHub sem tentar usar tokens do Gitea + git clone --depth 1 --branch main https://github.com/alam00000/bentopdf.git . + ls -la # Lista para confirmar que baixou - name: Inject SIMPLE_MODE into Dockerfile if: steps.exists.outputs.skip == 'false'