Skip to content

Commit 0c2d782

Browse files
authored
Merge pull request #173 from microsoftgraph/rsh/WorkflowDispatch
Dispatch Workflows from PR creation
2 parents eee1a57 + 05e67de commit 0c2d782

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/create-beta-pull-request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,30 @@ jobs:
4545
run: |
4646
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
4747
bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -r "$REVIEWERS" -a "$ASSIGNEDTO" -l "$LABELS"
48+
49+
queue-workflows:
50+
needs: create-pull-request
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/[email protected]
54+
- name: Queue Api Level Lint
55+
uses: benc-uk/workflow-dispatch@v1
56+
with:
57+
workflow: "Checks the SDK only using APIs from the targeted API level"
58+
token: ${{ secrets.PERSONAL_TOKEN }}
59+
ref: ${{ github.event.pull_request.head.ref }}
60+
- name: Queue Code QL
61+
uses: benc-uk/workflow-dispatch@v1
62+
with:
63+
workflow: "CodeQL"
64+
token: ${{ secrets.PERSONAL_TOKEN }}
65+
ref: ${{ github.event.pull_request.head.ref }}
66+
- name: Queue Java CI
67+
uses: benc-uk/workflow-dispatch@v1
68+
with:
69+
workflow: Java CI with Gradle
70+
token: ${{ secrets.PERSONAL_TOKEN }}
71+
ref: ${{ github.event.pull_request.head.ref }}
4872
# References
4973
# [0] https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
5074
# [1] https://hub.github.com/hub-pull-request.1.html

0 commit comments

Comments
 (0)