We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc88e8b commit 453f42fCopy full SHA for 453f42f
.github/workflows/auto-rebase.yml
@@ -50,6 +50,12 @@ jobs:
50
51
- name: Trigger test workflow
52
if: matrix.branch == 'workflows'
53
- run: gh workflow run test.yml --ref ${{ matrix.branch }}
+ run: |
54
+ WORKFLOW_ID=$(gh api "repos/${GITHUB_REPOSITORY}/actions/workflows" \
55
+ -q '.workflows[] | select(.path==".github/workflows/test.yml") | .id')
56
+ if [ -n "$WORKFLOW_ID" ]; then
57
+ gh api -X POST "repos/${GITHUB_REPOSITORY}/actions/workflows/${WORKFLOW_ID}/dispatches" \
58
+ -f ref=workflows
59
+ fi
60
env:
61
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments