File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
incubating/github-release Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ REQUIRED_VARS=(
20
20
)
21
21
22
22
OPTIONAL_VARS=(
23
+ GIT_TOKEN
23
24
RELEASE_DESCRIPTION
24
25
FILES
25
26
DRAFT
@@ -59,8 +60,11 @@ function checkTrigger() {
59
60
}
60
61
61
62
function setDefaultVarValues() {
62
- if [ ! -z " $GITHUB_TOKEN " ]; then
63
- GIT_CONTEXT=" _" # This is irrelevant, we are using GITHUB_TOKEN
63
+ if [ ! -z " $GIT_TOKEN " ]; then
64
+ bold " Using git token for authentication..."
65
+ GIT_CONTEXT=" _" # This is irrelevant, we are using git_token method
66
+ GITHUB_TOKEN=" $GIT_TOKEN "
67
+ export GITHUB_TOKEN
64
68
fi
65
69
66
70
if [ -z " $GIT_CONTEXT " ]; then
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: '1.0'
3
3
metadata :
4
4
name : github-release
5
5
title : Create a GitHub release
6
- version : 1.1.6
6
+ version : 1.1.7
7
7
isPublic : true
8
8
description : Create a GitHub release.
9
9
sources :
@@ -160,7 +160,7 @@ spec:
160
160
image : codefresh/github-release
161
161
environment :
162
162
- ' GIT_CONTEXT=${{git_context_name}}'
163
- - ' GITHUB_TOKEN =${{git_token}}'
163
+ - ' GIT_TOKEN =${{git_token}}'
164
164
- ' CF_BRANCH_TAG_NORMALIZED=${{CF_BRANCH_TAG_NORMALIZED}}'
165
165
- ' CF_REPO_OWNER=${{CF_REPO_OWNER}}'
166
166
- ' CF_REPO_NAME=${{CF_REPO_NAME}}'
You can’t perform that action at this time.
0 commit comments