From 3a263c5849044f7f8d18d1f8099fbe17a882b4f7 Mon Sep 17 00:00:00 2001 From: Till0196 <16399842+Till0196@users.noreply.github.com> Date: Tue, 16 Apr 2024 18:19:38 +0900 Subject: [PATCH] test env --- .github/workflows/example2.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/example2.yml b/.github/workflows/example2.yml index d88796c..f7ac5be 100644 --- a/.github/workflows/example2.yml +++ b/.github/workflows/example2.yml @@ -1,5 +1,9 @@ on: [push,workflow_dispatch] +env: + PROJECT_NAME: github-actions-example + PRODUCTION_BRANCH: develop + jobs: example: runs-on: ubuntu-latest @@ -30,9 +34,6 @@ jobs: echo "$result" echo 'EOF' } >> "$GITHUB_OUTPUT" - env: - PROJECT_NAME: github-actions-example - PRODUCTION_BRANCH: develop id: set-production-branch - name: Publish to Cloudflare Pages if: steps.set-production-branch.outcome == 'success' @@ -41,7 +42,7 @@ jobs: # Explicit branch name needed because of: https://github.com/cloudflare/pages-action/issues/97 apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy example --project-name=github-actions-example --branch=${{ github.head_ref || github.ref_name }} + command: pages deploy example --project-name=${{ env.PROJECT_NAME }}) --branch=${{ github.head_ref || github.ref_name }} id: publish - name: generate alias url id: generate-alias-url