Skip to content

Commit ca3ef96

Browse files
committed
github actions: pass ref and arch via ssh arguments
1 parent 077a713 commit ca3ef96

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,5 @@ jobs:
9797
kosuzu.thpatch.net,167.99.154.22,2604:a880:400:d1::755:f001 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCzlGDhCYxkT3q0REJyMYTs2uFfTXSjPgK4/6ue/RKofzIP/9FJOi6y41G4UiofZWYvIQiJ8vfLXZMnYj80pDD0=
9898
'@ | Set-Content -Encoding utf8 ~\.ssh\known_hosts
9999
100-
echo $env:GITHUB_REF_NAME | Out-File -encoding ASCII params.txt
101-
echo $env:arch | Add-Content -encoding ASCII params.txt
102-
cmd /c "type params.txt thtk-bin-ci.zip | ssh -T [email protected] -i .\id_ed25519"
100+
cmd /c "ssh -T [email protected] -i .\id_ed25519 -- ""%GITHUB_REF_NAME%"" ""%arch%"" <thtk-bin-ci.zip"
103101
Remove-Item .\id_ed25519
104-
Remove-Item .\params.txt

0 commit comments

Comments
 (0)