forked from hiero-ledger/hiero-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.3 KB
/
Copy pathworking-on-comment.yml
File metadata and controls
44 lines (39 loc) · 1.3 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
39
40
41
42
43
44
name: "Bot: Working On Comment"
on:
issue_comment:
types: [created]
workflow_dispatch:
inputs:
dry_run:
description: 'Log the run without making any changes'
required: true
default: "true"
type: string
permissions:
contents: read
jobs:
working-command:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && contains(github.event.comment.body, '/working'))
runs-on: hl-sdk-py-lin-md
permissions:
issues: write
contents: read
concurrency:
group: working-command-${{ github.event.issue.number || github.run_id }}
cancel-in-progress: false
steps:
- name: Harden Runner
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Handle /working command
id: working
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
DRY_RUN: ${{ github.event.inputs.dry_run }}
with:
script: |
const handler = require('./.github/scripts/bot-working-on-comment.js')
await handler({github, context})