test-forgejo-runner/.forgejo/workflows/demo.yaml
Julien Oculi 0a024b3ab1
Some checks failed
Named workflow / test (push) Failing after 11s
ci: debug git config
2024-01-18 11:09:57 +01:00

43 lines
1.4 KiB
YAML

name: Named workflow
on:
push:
branches: ["main"]
jobs:
test:
runs-on: docker
steps:
- name: Test checkout commands (init)
run: git init /workspace/julien.oculi/test-forgejo-runner
- name: Test checkout commands (remote)
run: git remote add origin http://localhost:10001/julien.oculi/test-forgejo-runner
- name: Test checkout commands (config)
run: "git config --local http.http://localhost:10001/.extraheader AUTHORIZATION: basic"
- name: Debug env
run: env
- name: Debug git config (global)
run: git config --global -l
- name: Debug git config (system)
run: git config --system -l
- name: Debug git config (local)
run: git config --local -l
- name: Debug git config (worktree)
run: git config --worktree -l
# - name: Test checkout commands (fetch)
# run: git -c protocol.version=2 fetch -v --no-tags --prune --no-recurse-submodules --depth=1 origin +2b3aefde1b6cbdf9e0a3bce32f86a0d069fc7c37:refs/remotes/origin/main
# - name: 'FIX: fetch actions/checkout@v4'
# run: curl -vL --create-dirs -o /var/run/act/actions/actions-checkout@v4/dist/index.js https://raw.githubusercontent.com/actions/checkout/main/dist/index.js
# - name: Setup repo
# uses: actions/checkout@v4