From e0a7569db765faa248bbb483d854b0ba26506337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Fern=C3=A1ndez?= Date: Thu, 3 Oct 2024 07:21:43 +0000 Subject: [PATCH] ci: extract cloudflare's project name into a top level env var --- .github/workflows/__deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/__deploy.yml b/.github/workflows/__deploy.yml index 1536e494369..b67e3d2d8e0 100644 --- a/.github/workflows/__deploy.yml +++ b/.github/workflows/__deploy.yml @@ -17,6 +17,9 @@ on: type: string default: frontend +env: + CF_PROJECT_NAME: jf-vue + jobs: cf-pages: name: CloudFlare Pages 📃 @@ -40,7 +43,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy dist --project-name=jf-vue --branch=${{ inputs.branch }} + command: pages deploy dist --project-name=${{ env.CF_PROJECT_NAME }} --branch=${{ inputs.branch }} compose-comment: name: Compose and push comment 📝