forked from hiero-ledger/hiero-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbot-beginner-assign-on-comment.yml
More file actions
38 lines (30 loc) · 1.16 KB
/
Copy pathbot-beginner-assign-on-comment.yml
File metadata and controls
38 lines (30 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Beginner Assign on /assign
on:
issue_comment:
types:
- created
permissions:
issues: write
contents: read
jobs:
beginner-assign:
# Only run on issue comments (not PR comments)
if: github.event.issue.pull_request == null
runs-on: hl-sdk-py-lin-md
# Prevent race conditions unique to beginner assignment
concurrency:
group: beginner-assign-${{ github.event.issue.number }}
cancel-in-progress: false
steps:
- name: Harden runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Run Beginner /assign handler
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
const script = require('./.github/scripts/bot-beginner-assign-on-comment.js');
await script({ github, context });