From dfd6580f9265116cc8a570c03838f83426b8d54a Mon Sep 17 00:00:00 2001 From: Ilyar Date: Mon, 14 Jul 2025 13:29:15 +0200 Subject: [PATCH] chore: use action from TON ID --- .github/workflows/qa.yml | 2 ++ .github/workflows/reward-merged-prs.yml | 25 +++++++++++++++++++++++++ .github/workflows/reward.yml | 15 +++++++-------- 3 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/reward-merged-prs.yml diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 45fc97e..a8ed1c1 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -4,6 +4,7 @@ on: push: paths-ignore: - '.github/workflows/reward.yml' + - '.github/workflows/reward-merged-prs.yml' - '.github/ISSUE_TEMPLATE/*' - '*.md' branches: @@ -11,6 +12,7 @@ on: pull_request: paths-ignore: - '.github/workflows/reward.yml' + - '.github/workflows/reward-merged-prs.yml' - '.github/ISSUE_TEMPLATE/*' - '*.md' branches: diff --git a/.github/workflows/reward-merged-prs.yml b/.github/workflows/reward-merged-prs.yml new file mode 100644 index 0000000..1d31c30 --- /dev/null +++ b/.github/workflows/reward-merged-prs.yml @@ -0,0 +1,25 @@ +name: Reward merged PRs + +on: + workflow_dispatch: + inputs: + per_page: + description: 'Number of merged PRs to process' + required: false + default: '15000' # Default value shown in UI + type: string + +jobs: + reward: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: ton-society/gh-ton-contribution-reward/.github/actions/rewards-for-merged-prs@v1 + with: + per_page: ${{ inputs.per_page }} + activity_id: '9745' + github_token: ${{ secrets.GITHUB_TOKEN }} + x_api_key: ${{ secrets.X_API_KEY }} + x_partner_id: ${{ secrets.X_PARTNER_ID }} diff --git a/.github/workflows/reward.yml b/.github/workflows/reward.yml index 047d5ab..f115db9 100644 --- a/.github/workflows/reward.yml +++ b/.github/workflows/reward.yml @@ -1,9 +1,9 @@ name: Reward on: - pull_request: - types: - - closed + push: + branches: + - master jobs: reward: @@ -13,10 +13,9 @@ jobs: contents: read pull-requests: write steps: - - uses: the-ton-tech/toolchain/reward@v1.4.0 + - uses: ton-society/gh-ton-contribution-reward@v1 with: - activity_id: tl-b - on_reward_label: rewarded + activity_id: '9745' github_token: ${{ secrets.GITHUB_TOKEN }} - society_api_key: ${{ secrets.X_API_KEY }} - society_partner_id: ${{ secrets.X_PARTNER_ID }} + x_api_key: ${{ secrets.X_API_KEY }} + x_partner_id: ${{ secrets.X_PARTNER_ID }}