Compare commits

...

5 commits

Author SHA1 Message Date
ff173f91a0
sync 2024-03-22 23:45:25 +01:00
15ee431bb4
branch 2024-03-22 23:34:01 +01:00
801eafa9a0
workspace 2024-03-22 23:19:54 +01:00
3b15feb70c
exit 2024-03-22 23:16:42 +01:00
19a7af861e
env 2024-03-22 23:09:21 +01:00
4 changed files with 24 additions and 0 deletions

5
branch Executable file
View file

@ -0,0 +1,5 @@
git clone \
--branch "${GITHUB_REF_NAME}" \
-- \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" \
'.'

1
env Executable file
View file

@ -0,0 +1 @@
env | sort

16
sync Executable file
View file

@ -0,0 +1,16 @@
apt-get install 'rsync'
mkdir --parents ~/.ssh
echo '${{secrets.cd}}' > ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
ssh \
-o StrictHostKeyChecking=accept-new \
'cd@de.tilde.link' -- hostname
rsync \
--archive \
--delete-before \
--verbose \
'out/' \
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"

2
workspace Executable file
View file

@ -0,0 +1,2 @@
apt-get install 'tree'
tree -a "${GITHUB_WORKSPACE}"