Skip to content

Commit

Permalink
chore: replace special chars on branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Orkuncakilkaya committed Oct 31, 2023
1 parent c8364e3 commit 78df518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- '!main'

jobs:
ci:
create-cloudflare-dns-record:
runs-on: ubuntu-20.04
steps:
- name: Extract Branch Name
id: extract-branch
run: |
echo BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} >> $GITHUB_OUTPUT
echo BRANCH_NAME=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | perl -pe 's/\W/-/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 78df518

Please sign in to comment.