mirror of
https://code.forgejo.org/actions/checkout.git
synced 2026-01-14 07:36:16 +00:00
Merge b952e6d97e into 0c366fd6a8
This commit is contained in:
commit
48b341bcaa
3 changed files with 27 additions and 4 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -192,6 +192,25 @@ jobs:
|
|||
with:
|
||||
args: bash __test__/verify-worktree.sh worktree-test container-worktree-branch
|
||||
|
||||
# Credentials when checkout out into symlink
|
||||
- name: Setup for symlink test
|
||||
run: mkdir symlink-test-real && ln -s symlink-test-real symlink-test-link
|
||||
- name: Checkout for worktree test
|
||||
uses: ./
|
||||
with:
|
||||
path: symlink-test-link
|
||||
- name: Verify symlink credentials
|
||||
run: |
|
||||
cd symlink-test-real
|
||||
if git config --list --show-origin | grep -q "extraheader"; then
|
||||
echo "Credentials are configured"
|
||||
else
|
||||
echo "ERROR: Credentials are NOT configured"
|
||||
echo "Full git config:"
|
||||
git config --list --show-origin
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Basic checkout using REST API
|
||||
- name: Remove basic
|
||||
if: runner.os != 'windows'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue