|
35 | 35 | - name: Create PR using the GitHub REST API via hub |
36 | 36 | shell: bash |
37 | 37 | env: |
38 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 38 | + GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} |
39 | 39 | MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter |
40 | 40 | MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR." |
41 | 41 | REVIEWERS: peombwa,ddyett,zengin,nikithauc,baywet |
|
45 | 45 | run: | |
46 | 46 | curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 |
47 | 47 | 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 | | - |
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 | 48 | |
73 | 49 | # References |
74 | 50 | # [0] https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables |
|
0 commit comments