Skip to content

Commit

Permalink
ci: extract cf pages deployment url to top level env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Oct 3, 2024
1 parent d0be419 commit 57607f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/__job_messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:
type: string
default: "CFPages-deployment"

env:
CF_PAGES_DEPLOYMENT_URL: https://jf-vue.pages.dev

jobs:
cf_pages_msg:
Expand All @@ -36,7 +38,7 @@ jobs:
id: compose
env:
COMMIT: ${{ inputs.commit }}
PREVIEW_URL: ${{ inputs.preview_url != '' && (inputs.branch != 'master' && inputs.preview_url || format('https://jf-vue.pages.dev ({0})', inputs.preview_url)) || 'Not available' }}
PREVIEW_URL: ${{ inputs.preview_url != '' && (inputs.branch != 'master' && inputs.preview_url || format('{0} ({1})', env.CF_PAGES_DEPLOYMENT_URL, inputs.preview_url)) || 'Not available' }}
DEPLOY_STATUS: ${{ inputs.in_progress && '🔄 Deploying...' || (inputs.preview_url != '' && '✅ Deployed!' || '❌ Failure. Check workflow logs for details') }}
DEPLOYMENT_TYPE: ${{ inputs.branch != 'master' && '🔀 Preview' || '⚙️ Production' }}
WORKFLOW_RUN: ${{ !inputs.in_progress && format('**[View build logs](https://github.com/{0}/actions/runs/{1})**', github.repository, github.run_id) || '' }}
Expand Down

0 comments on commit 57607f1

Please sign in to comment.