Skip to content

Commit cea2fee

Browse files
committed
Trigger repository dispatch
1 parent 87d6264 commit cea2fee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy-main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ jobs:
5151
git push origin gh-pages
5252
else
5353
echo "No changes to commit"
54-
fi
54+
fi
55+
- name: Trigger another workflow
56+
run: |
57+
curl -X POST -H "Accept: application/vnd.github.v3+json" \
58+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
59+
https://api.github.com/repos/${{ github.repository }}/dispatches \
60+
-d '{"event_type":"deploy_completed"}'

0 commit comments

Comments
 (0)