π³οΈββ§οΈπ³οΈβπ Register seerr.lgbt.sh #340
This file contains 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: "List Subdomain" | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
Register: | |
runs-on: ubuntu-latest | |
if: github.event.issue.title == 'List' | |
permissions: | |
issues: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: List Subdomain | |
env: | |
EVENT_ISSUE_BODY: ${{ github.event.issue.body }} | |
EVENT_USER_LOGIN: ${{ github.event.issue.user.login }} | |
CF_TOKEN: ${{ secrets.CF_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm i cloudflare | |
node --no-deprecation list > data.csv | |
cat data.csv | |
comment=$(cut -d "|" -f 2 data.csv) | |
reason=$(cut -d "|" -f 1 data.csv) | |
gh issue edit https://github.com/lgbt-sh/lgbt-sh/issues/${{ github.event.issue.number }} -t "π³οΈββ§οΈπ³οΈβπ List $EVENT_USER_LOGIN" --add-label "domain list" | |
gh issue close https://github.com/lgbt-sh/lgbt-sh/issues/${{ github.event.issue.number }} --comment "${comment//"\\n"/$'\n'}" --reason "$reason" | |