Skip to content

Commit

Permalink
chore: fix bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Oct 31, 2023
1 parent 78df518 commit 821327d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 821327d

Please sign in to comment.