Skip to content

Commit

Permalink
ci: create trigger for preview deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRoger committed Dec 8, 2023
1 parent d2d4a36 commit 73473de
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy_preview_trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy Preview Trigger

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger
run:
|
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.DEPLOY_PREVIEW_PAT }}" https://api.github.com/repos/LR-Tech-Blog/deploy/dispatches -d '{"event_type":"deploy-preview"}'

0 comments on commit 73473de

Please sign in to comment.