Skip to content

Commit 7bd8983

Browse files
authored
Merge pull request #55 from ton-community/change-reward-action
chore: use action from TON ID
2 parents f75e38d + e8270e1 commit 7bd8983

3 files changed

Lines changed: 34 additions & 8 deletions

File tree

.github/workflows/qa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
paths-ignore:
66
- '.github/workflows/reward.yml'
7+
- '.github/workflows/reward-merged-prs.yml'
78
- '.github/ISSUE_TEMPLATE/*'
89
- '*.md'
910
branches:
1011
- master
1112
pull_request:
1213
paths-ignore:
1314
- '.github/workflows/reward.yml'
15+
- '.github/workflows/reward-merged-prs.yml'
1416
- '.github/ISSUE_TEMPLATE/*'
1517
- '*.md'
1618
branches:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Reward merged PRs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
per_page:
7+
description: 'Number of merged PRs to process'
8+
required: false
9+
default: '15000' # Default value shown in UI
10+
type: string
11+
12+
jobs:
13+
reward:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
steps:
19+
- uses: ton-society/gh-ton-contribution-reward/.github/actions/rewards-for-merged-prs@v1
20+
with:
21+
per_page: ${{ inputs.per_page }}
22+
activity_id: '9745'
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
x_api_key: ${{ secrets.X_API_KEY }}
25+
x_partner_id: ${{ secrets.X_PARTNER_ID }}

.github/workflows/reward.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Reward
22

33
on:
4-
pull_request:
5-
types:
6-
- closed
4+
push:
5+
branches:
6+
- master
77

88
jobs:
99
reward:
@@ -13,10 +13,9 @@ jobs:
1313
contents: read
1414
pull-requests: write
1515
steps:
16-
- uses: the-ton-tech/toolchain/reward@v1.3.0
16+
- uses: ton-society/gh-ton-contribution-reward@v1
1717
with:
18-
activity_id: tl-b
19-
on_reward_label: rewarded
18+
activity_id: '9745'
2019
github_token: ${{ secrets.GITHUB_TOKEN }}
21-
society_api_key: ${{ secrets.X_API_KEY }}
22-
society_partner_id: ${{ secrets.X_PARTNER_ID }}
20+
x_api_key: ${{ secrets.X_API_KEY }}
21+
x_partner_id: ${{ secrets.X_PARTNER_ID }}

0 commit comments

Comments
 (0)