Skip to content

Commit 1072687

Browse files
authored
Merge pull request #70 from Bullrich/master
ci: fixed bots not generating the app token
2 parents 8122afa + 28c5b6e commit 1072687

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
jobs:
99
set-auto-merge:
1010
runs-on: ubuntu-latest
11-
environment: master
1211
timeout-minutes: 10
1312
# Important! This forces the job to run only on comments on Pull Requests that starts with '/merge'
1413
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/merge') }}
@@ -18,10 +17,11 @@ jobs:
1817
id: fellows
1918
- name: Generate a token
2019
id: merge_token
21-
uses: actions/create-github-app-token@v1.8.1
20+
uses: actions/create-github-app-token@v1
2221
with:
2322
app-id: ${{ secrets.MERGE_APP_ID }}
2423
private-key: ${{ secrets.MERGE_APP_KEY }}
24+
owner: ${{ github.repository_owner }}
2525
- name: Set auto merge
2626
uses: paritytech/auto-merge-bot@v1.0.1
2727
with:

.github/workflows/review-bot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ jobs:
2121
artifact-name: pr_number
2222
- name: Generate token
2323
id: team_token
24-
uses: actions/create-github-app-token@v1.9.3
24+
uses: actions/create-github-app-token@v1
2525
with:
2626
app-id: ${{ secrets.REVIEW_APP_ID }}
2727
private-key: ${{ secrets.REVIEW_APP_KEY }}
28+
owner: ${{ github.repository_owner }}
2829
- name: "Evaluates PR reviews and assigns reviewers"
2930
uses: paritytech/review-bot@v2.5.0
3031
with:

.github/workflows/up-to-date.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
updatePullRequests:
1010
name: Keep PRs up to date
1111
runs-on: ubuntu-latest
12-
environment: master
1312
steps:
1413
- name: Generate token
1514
id: generate_token
1615
uses: actions/create-github-app-token@v1
1716
with:
1817
app-id: ${{ secrets.MERGE_APP_ID }}
1918
private-key: ${{ secrets.MERGE_APP_KEY }}
19+
owner: ${{ github.repository_owner }}
2020
- name: Update all the PRs
2121
uses: paritytech/up-to-date-action@v0.2.1
2222
with:

0 commit comments

Comments
 (0)