From 821327d815ab462dbbd890e506467c30d0b42e79 Mon Sep 17 00:00:00 2001 From: Orkun Date: Tue, 31 Oct 2023 10:11:54 +0300 Subject: [PATCH] chore: fix bash --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2be0a2..05cb2de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Extract Branch Name id: extract-branch run: | - echo BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | perl -pe 's/\W/-/g' >> $GITHUB_OUTPUT + echo BRANCH_NAME=$(${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | perl -pe 's/\W/-/g and s/-+$//g') >> $GITHUB_OUTPUT - name: Create Cloudflare DNS Record run: | curl --location --request POST 'https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE_ID }}/dns_records' \