pwsh again
This commit is contained in:
parent
462132dc28
commit
d48a659702
10
.github/workflows/symlink-test.yml
vendored
10
.github/workflows/symlink-test.yml
vendored
|
@ -23,12 +23,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# symlink
|
# symlink via bash
|
||||||
|
# this does *not* create a symlink, but a directory
|
||||||
#- name: Symlink Bash
|
#- name: Symlink Bash
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# run: |
|
# run: |
|
||||||
# if ! [ -L bang ]; then
|
# if ! [ -L bang ]; then
|
||||||
# # however, this does *not* create a symlink, but a directory
|
|
||||||
# ln -s duh bang
|
# ln -s duh bang
|
||||||
# ls -l
|
# ls -l
|
||||||
# git config --global user.email "stephan@REDACTED.com"
|
# git config --global user.email "stephan@REDACTED.com"
|
||||||
|
@ -39,11 +39,17 @@ jobs:
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
# symlink via pwsh
|
# symlink via pwsh
|
||||||
|
# this creates a 'bang' file that contains 'duh'
|
||||||
|
# on local machine, it fails 'New-Item: Administrator privilege required for this operation.'
|
||||||
- name: Symlink Pwsh
|
- name: Symlink Pwsh
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
if (! (test-path bang)) {
|
if (! (test-path bang)) {
|
||||||
New-Item -ItemType SymbolicLink -Name bang -Target duh
|
New-Item -ItemType SymbolicLink -Name bang -Target duh
|
||||||
|
write-output "DIR:"
|
||||||
|
ls .
|
||||||
|
write-output "DIR:"
|
||||||
|
ls bang
|
||||||
git config --global user.email "stephan@REDACTED.com"
|
git config --global user.email "stephan@REDACTED.com"
|
||||||
git config --global user.name "Stephan"
|
git config --global user.name "Stephan"
|
||||||
git config --global core.symlinks "true"
|
git config --global core.symlinks "true"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user