File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,13 @@ elif [ -n "${GITHUB_TOKEN}" ]; then
46
46
print_info " setup with GITHUB_TOKEN"
47
47
print_error " Do not use GITHUB_TOKEN, See #9"
48
48
49
- remote_repo=" https://x-access-token:${GITHUB_TOKEN} @github.com/${PUBLISH_REPOSITORY} .git"
50
-
51
- if [ -n " ${PUBLISH_REPOSITORY} " ]; then
52
- if [ " ${GITHUB_REPOSITORY} " != " ${PUBLISH_REPOSITORY} " ]; then
53
- echo " can not use GITHUB_TOKEN to deploy to a different repository"
54
- exit 1
55
- fi
49
+ if [ -n " ${EXTERNAL_REPOSITORY} " ]; then
50
+ print_error " can not use GITHUB_TOKEN to deploy to a external repository"
51
+ exit 1
56
52
fi
57
53
54
+ remote_repo=" https://x-access-token:${GITHUB_TOKEN} @github.com/${PUBLISH_REPOSITORY} .git"
55
+
58
56
else
59
57
print_error " not found ACTIONS_DEPLOY_KEY, PERSONAL_TOKEN, or GITHUB_TOKEN"
60
58
exit 1
You can’t perform that action at this time.
0 commit comments