Skip to content

Commit

Permalink
Update test-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dayhaysoos committed Aug 8, 2023
1 parent 715adb1 commit 7ae0ba9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ jobs:

steps:
- name: Trigger Netlify Build via Build Hook
run: curl -X POST -d {} ${{ secrets.TEST_BUILDHOOK }}
run: |
BRANCH_NAME=${GITHUB_REF##*/}
ENCODED_BRANCH_NAME=$(echo "$BRANCH_NAME" | sed 's|/|%2F|g')
TITLE="${ENCODED_BRANCH_NAME} Branch Deploy"
curl -X POST "https://api.netlify.com/build_hooks/${{ secrets.TEST_BUILDHOOK }}?trigger_branch=$ENCODED_BRANCH_NAME&trigger_title=$TITLE&clear_cache=true"

0 comments on commit 7ae0ba9

Please sign in to comment.