feat: simplify variables
This commit is contained in:
parent
e34fae7ab2
commit
fb69700b06
2 changed files with 3 additions and 8 deletions
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
URL="${ACTION_SERVER_URL/\/\//\/\/$ACTION_REPOSITORY_OWNER:$ACTION_TOKEN@}/$ACTION_REPOSITORY"
|
||||
URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$ACTION_TOKEN@}/$GITHUB_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"
|
||||
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$GITHUB_SHA"
|
||||
git checkout --progress --force -B main "$GITHUB_SHA"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue