feat: add trigger deployment

This commit is contained in:
Bart van der Braak 2023-11-08 21:00:49 +01:00
parent 7edf75f0a4
commit a6cdc18bc3

26
.github/workflows/trigger.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: test trigger
on:
push:
branches:
- "feat/homebrew-releases"
pull_request:
branches:
- "main"
paths:
- ".github/workflows/trigger.yml"
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'bartvdbraak',
repo: 'homebrew-keyweave',
workflow_id: 'release.yml',
ref: 'main'
})