Skip to content

Commit

Permalink
fix: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcadoo committed Jan 29, 2024
1 parent 4ff4a79 commit 81b9fe2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/trigger-netlify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
- name: Trigger Netlify Build
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
if: contains(github.event.comment.body, 'netlify build')
run: |
if [[ $GITHUB_EVENT_NAME == "issue_comment" ]]; then
COMMENT_USER=$(jq -r .comment.user.login $GITHUB_EVENT_PATH)
COMMENT_BODY=$(jq -r .comment.body $GITHUB_EVENT_PATH)
if [[ $COMMENT_BODY == *"netlify build"* ]]; then
curl -X POST $NETLIFY_BUILD_HOOK
fi
curl -X POST $NETLIFY_BUILD_HOOK

0 comments on commit 81b9fe2

Please sign in to comment.