first commit
This commit is contained in:
commit
e34fae7ab2
3 changed files with 26 additions and 0 deletions
8
checkout.sh
Executable file
8
checkout.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
URL="${ACTION_SERVER_URL/\/\//\/\/$ACTION_REPOSITORY_OWNER:$ACTION_TOKEN@}/$ACTION_REPOSITORY"
|
||||
|
||||
git init -b main
|
||||
git remote add origin "$URL"
|
||||
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$ACTION_SHA"
|
||||
git checkout --progress --force -B main "$ACTION_SHA"
|
||||
Loading…
Add table
Add a link
Reference in a new issue