pwsh
This commit is contained in:
parent
a87c48b4ee
commit
22751c3d2b
16
.github/workflows/symlink-test.yml
vendored
16
.github/workflows/symlink-test.yml
vendored
|
@ -24,10 +24,11 @@ jobs:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# symlink
|
# symlink
|
||||||
- name: Symlink
|
- 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"
|
||||||
|
@ -37,6 +38,19 @@ jobs:
|
||||||
git commit -m "created symlink"
|
git commit -m "created symlink"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# symlink via pwsh
|
||||||
|
- name: Symlink Pwsh
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
if (! (test-path bang)) {
|
||||||
|
New-Item -ItemType SymbolicLink -Name bang -Target duh
|
||||||
|
git config --global user.email "stephan@REDACTED.com"
|
||||||
|
git config --global user.name "Stephan"
|
||||||
|
git config --global core.symlinks "true"
|
||||||
|
git add bang
|
||||||
|
git commit -m "created symlink"
|
||||||
|
}
|
||||||
|
|
||||||
# push changes back
|
# push changes back
|
||||||
- name: Push
|
- name: Push
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
duh
|
|
Loading…
Reference in New Issue
Block a user