@@ -12,7 +12,7 @@ inputs:
1212 description : " Codefresh runtime exposed in cluster address: https://your.clusters.ci-cd.com/app-proxy"
1313 required : false
1414 CF_RUNTIME_NAME :
15- description : " Name of runtime to implement the enrichment "
15+ description : " Codefresh runtime name "
1616 required : true
1717 CF_VERBOSE :
1818 description : " verbose output"
@@ -44,6 +44,9 @@ inputs:
4444 CF_WORKFLOW_URL :
4545 required : false
4646 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."
4750 CF_LOGS_URL :
4851 required : false
4952 description : " external url for the logs"
@@ -123,6 +126,7 @@ runs:
123126 CF_REGISTRY_DOMAIN : " ${{ inputs.CF_REGISTRY_DOMAIN }}"
124127 CF_INSECURE : " ${{ inputs.CF_INSECURE }}"
125128 CF_WORKFLOW_URL : " ${{ inputs.CF_WORKFLOW_URL }}"
129+ CF_WORKFLOW_NAME : " ${{ inputs.CF_WORKFLOW_NAME }}"
126130 CF_LOGS_URL : " ${{ inputs.CF_LOGS_URL }}"
127131
128132 CF_ENRICHERS : " ${{ inputs.CF_ENRICHERS }}"
@@ -154,15 +158,18 @@ runs:
154158 GITHUB_REF_NAME : " ${{ github.ref_name }}"
155159 GITHUB_REPOSITORY : " ${{ github.repository }}"
156160 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 }}"
158164
159165
160166 run : |
161167 # add defaults
162168 export CF_GIT_BRANCH="${CF_GIT_BRANCH:-$GITHUB_REF_NAME}"
163169 export CF_GIT_REPO="${CF_GIT_REPO:-$GITHUB_REPOSITORY}"
164170 # 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}"
166173 export CF_GIT_PROVIDER="${CF_GIT_PROVIDER:-github}"
167174 export CF_CI_TYPE=github-actions
168175
0 commit comments