forked from 2factorauth/twofactorauth
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 889 Bytes
/
issues.yml
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
name: Replace Issue Title
on:
issues:
types:
- opened
env:
GH_TOKEN: ${{ github.token }}
jobs:
replace:
name: Replace Issue Title
if: contains(toJson(github.event.issue.labels.*.name), 'add site') || contains(toJson(github.event.issue.labels.*.name), 'update site')
runs-on: ubuntu-latest
steps:
- name: Issue Forms Body Parser
id: parse
uses: zentered/[email protected]
- name: Extract site-name
id: extract-site-name
uses: 2factorauth/issue-title-action@master
with:
repository: ${{ github.repository }}
issue_number: ${{ github.event.issue.number }}
data: ${{ toJSON(steps.parse.outputs.data) }}
token: ${{ secrets.GITHUB_TOKEN }}
labels: "${{ toJSON(github.event.issue.labels) }}"
similarweb_key: ${{ secrets.SIMILARWEB_KEY }}