Skip to content

Commit

Permalink
ci: add dispatching for ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Apr 10, 2024
1 parent 0c25267 commit 22464c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,19 @@ jobs:
clean-exclude: |
1
lib
engage_toaster:
runs-on: ubuntu-latest
needs: validate
steps:
- name: Trigger Litestar Toast Update Release Workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'update-toast.yml',
ref: 'main'
});
4 changes: 4 additions & 0 deletions .github/workflows/update-toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Check Litestar Release
on:
schedule:
- cron: '0 0 * * *' # Run every night at midnight
workflow_run:
workflows: ["Tests and Linting"]
types:
- completed

jobs:
check_release:
Expand Down

0 comments on commit 22464c4

Please sign in to comment.