Update .gitea/workflows/simplesbentocreation.yml
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
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
|
- name: Check Upstream Latest Commit
|
||||||
id: check
|
id: check
|
||||||
@@ -46,15 +46,15 @@ jobs:
|
|||||||
echo "skip=false" >> $GITHUB_OUTPUT
|
echo "skip=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
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'
|
if: steps.exists.outputs.skip == 'false'
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
# Limpa o diretório atual caso tenha lixo
|
||||||
repository: alam00000/bentopdf
|
rm -rf * .git
|
||||||
ref: main
|
# Clona o repo público do GitHub sem tentar usar tokens do Gitea
|
||||||
# --- CORREÇÃO IMPORTANTE ABAIXO ---
|
git clone --depth 1 --branch main https://github.com/alam00000/bentopdf.git .
|
||||||
# Força a action a buscar no GitHub.com em vez do seu servidor local
|
ls -la # Lista para confirmar que baixou
|
||||||
github-server-url: 'https://github.com'
|
|
||||||
|
|
||||||
- name: Inject SIMPLE_MODE into Dockerfile
|
- name: Inject SIMPLE_MODE into Dockerfile
|
||||||
if: steps.exists.outputs.skip == 'false'
|
if: steps.exists.outputs.skip == 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user