Skip to content

Commit 592a628

Browse files
Merge pull request #892 from microsoftgraph/rsh/queueWorkflows
Queue Workflows on pr creation
2 parents d3fa9cf + aaa3d10 commit 592a628

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/create-v1.0-pull-request.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,31 @@ 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 }}
72+
4873
# References
4974
# [0] https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
5075
# [1] https://hub.github.com/hub-pull-request.1.html

0 commit comments

Comments
 (0)