Skip to content

Commit

Permalink
test: separate trigger and dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Feb 5, 2023
1 parent 154ffdc commit 739cdf9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml → .github/workflows/dispatch.yml
@@ -1,11 +1,6 @@
name: test

on:
push:
branches-ignore:
- "coverage"
- "renovate/**"
pull_request:
workflow_dispatch:
inputs:
main_branch:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/trigger.yml
@@ -0,0 +1,27 @@
---
name: trigger

on:
push:
branches-ignore:
- "coverage"
- "renovate/**"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
trigger:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: convictional/trigger-workflow-and-wait@v1.6.5
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
github_token: ${{ github.token }}
workflow_file_name: dispatch.yml
propagate_failure: true

0 comments on commit 739cdf9

Please sign in to comment.