From 6517398730074916ea794d949cc1d4bf119ae81b Mon Sep 17 00:00:00 2001 From: Till0196 <16399842+Till0196@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:45:01 +0900 Subject: [PATCH] test --- .github/workflows/example2.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/example2.yml b/.github/workflows/example2.yml index bbad29b..0222c67 100644 --- a/.github/workflows/example2.yml +++ b/.github/workflows/example2.yml @@ -17,9 +17,14 @@ jobs: --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}' \ --data '{ "production_branch": "develop" }') - result=$(echo "$result" | jq -r 'if .success == true then \ - "Production Branchの変更に成功しました。\n\(.result.latest_deployment.production_branch)から\(.result.production_branch)に変更されました" else \ - "Production Branchの変更に失敗しました。\nエラーコード: \(.errors[].code) \nエラーメッセージ: \(.errors[].message)" end') + result=$(echo "$result" | jq -r ' + if .success == true then + "Production Branchの変更に成功しました。\n\(.result.latest_deployment.production_branch)から\(.result.production_branch)に変更されました" + else + "Production Branchの変更に失敗しました。\nエラーコード: \(.errors[].code) \nエラーメッセージ: \(.errors[].message)" + end + ') + echo "$result" - name: Publish to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: