Skip to content

Commit 5393108

Browse files
Switch to Personal Token
1 parent 592a628 commit 5393108

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

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

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Create PR using the GitHub REST API via hub
3636
shell: bash
3737
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
3939
MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter
4040
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."
4141
REVIEWERS: peombwa,ddyett,zengin,nikithauc,baywet
@@ -45,30 +45,6 @@ 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 }}
7248
7349
# References
7450
# [0] https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables

0 commit comments

Comments
 (0)