@@ -12,7 +12,7 @@ inputs:
12
12
description : " Codefresh runtime exposed in cluster address: https://your.clusters.ci-cd.com/app-proxy"
13
13
required : false
14
14
CF_RUNTIME_NAME :
15
- description : " Name of runtime to implement the enrichment "
15
+ description : " Codefresh runtime name "
16
16
required : true
17
17
CF_VERBOSE :
18
18
description : " verbose output"
@@ -44,6 +44,9 @@ inputs:
44
44
CF_WORKFLOW_URL :
45
45
required : false
46
46
description : " external url for the workflow"
47
+ CF_WORKFLOW_NAME :
48
+ required : false
49
+ description : " The name assigned to the workflow that builds the image. When defined, the name is displayed in the Codefresh platform."
47
50
CF_LOGS_URL :
48
51
required : false
49
52
description : " external url for the logs"
@@ -123,6 +126,7 @@ runs:
123
126
CF_REGISTRY_DOMAIN : " ${{ inputs.CF_REGISTRY_DOMAIN }}"
124
127
CF_INSECURE : " ${{ inputs.CF_INSECURE }}"
125
128
CF_WORKFLOW_URL : " ${{ inputs.CF_WORKFLOW_URL }}"
129
+ CF_WORKFLOW_NAME : " ${{ inputs.CF_WORKFLOW_NAME }}"
126
130
CF_LOGS_URL : " ${{ inputs.CF_LOGS_URL }}"
127
131
128
132
CF_ENRICHERS : " ${{ inputs.CF_ENRICHERS }}"
@@ -154,15 +158,18 @@ runs:
154
158
GITHUB_REF_NAME : " ${{ github.ref_name }}"
155
159
GITHUB_REPOSITORY : " ${{ github.repository }}"
156
160
GITHUB_COMMIT_MESSAGE : " ${{ github.event.head_commit.message }}"
157
- GITHUB_PAYLOAD_MESSAGE : " ${{ github.event.client_payload.message }}"
161
+ GITHUB_PAYLOAD_MESSAGE : " ${{ github.event.client_payload.message }}"
162
+ GITHUB_WORKFLOW_NAME : " ${{ github.repository }}/${{ github.run_id }}"
163
+ GITHUB_WORKFLOW_URL : " ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
158
164
159
165
160
166
run : |
161
167
# add defaults
162
168
export CF_GIT_BRANCH="${CF_GIT_BRANCH:-$GITHUB_REF_NAME}"
163
169
export CF_GIT_REPO="${CF_GIT_REPO:-$GITHUB_REPOSITORY}"
164
170
# built vars
165
- export CF_WORKFLOW_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
171
+ export CF_WORKFLOW_URL="${CF_WORKFLOW_URL:-$GITHUB_WORKFLOW_URL}"
172
+ export CF_WORKFLOW_NAME="${CF_WORKFLOW_NAME:-$GITHUB_WORKFLOW_NAME}"
166
173
export CF_GIT_PROVIDER="${CF_GIT_PROVIDER:-github}"
167
174
export CF_CI_TYPE=github-actions
168
175
0 commit comments