-
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.01 KB
/
manually_add.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
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Manually add domains
on:
issues:
types:
- labeled
permissions:
contents: write
issues: write
jobs:
get-domains:
if: ${{ github.event.label.name == 'add domains' && github.actor == github.repository_owner }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Read domains from issue
run: |
mkdir -p data/pending
printf "%s\n" "${{ github.event.issue.body }}" >> data/pending/domains_manual.tmp
- name: Close issue
run: gh issue close ${{ github.event.issue.number }}
env:
GH_TOKEN: ${{ github.token }}
- name: Push
run: |
git config user.email ${{ vars.GIT_EMAIL }}
git config user.name ${{ vars.GIT_USERNAME }}
git add .
git diff-index --quiet HEAD || git commit -m "Manually add domains"
git push -q
build:
needs: get-domains
uses: ./.github/workflows/retrieve_domains.yml