精简飞书黑客松主页“倒计时”组件代码 #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Claim Issue Reward | |
| on: | |
| issues: | |
| types: | |
| - closed | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| jobs: | |
| claim-issue-reward: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Get Issue details | |
| id: parse_issue | |
| uses: stefanbuck/github-issue-parser@v3 | |
| with: | |
| template-path: '.github/ISSUE_TEMPLATE/reward-task.yml' | |
| - name: Calculate & Save Reward | |
| run: | | |
| deno --allow-all .github/scripts/share-reward.ts \ | |
| ${{ github.repository_owner }} \ | |
| ${{ github.event.repository.name }} \ | |
| ${{ github.event.issue.number }} \ | |
| "${{ steps.parse_issue.outputs.issueparser_payer || github.event.issue.user.login }}" \ | |
| "${{ steps.parse_issue.outputs.issueparser_currency }}" \ | |
| ${{ steps.parse_issue.outputs.issueparser_amount }} |