This commit is contained in:
Stephan 2021-10-19 16:15:13 +02:00
parent a87c48b4ee
commit 22751c3d2b
2 changed files with 15 additions and 2 deletions

View File

@ -24,10 +24,11 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
# symlink
- name: Symlink
- name: Symlink Bash
shell: bash
run: |
if ! [ -L bang ]; then
# however, this does *not* create a symlink, but a directory
ln -s duh bang
ls -l
git config --global user.email "stephan@REDACTED.com"
@ -37,6 +38,19 @@ jobs:
git commit -m "created symlink"
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
- name: Push
shell: bash

View File

@ -1 +0,0 @@
duh