-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.02 KB
/
pull_request.yml
File metadata and controls
38 lines (36 loc) · 1.02 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: PHPOnl pull request events
on:
pull_request:
branches:
- master
types:
- opened
- closed
env:
PRIMARY_DOMAIN: php.onl
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
check-domain:
if: |
github.event.action == 'opened'
&& contains(toJson(github.event.pull_request.labels), 'register domain')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- uses: ./.github/actions/check-domain
with:
domainDataUrl: ${{ secrets.DOMAIN_DATA_URL }}
create-domain:
if: |
github.event.action == 'closed' && github.event.pull_request.merged == true
&& contains(toJson(github.event.pull_request.labels), 'register domain')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- uses: ./.github/actions/create-domain
with:
apiUrl: ${{ secrets.DNS_API_URL }}
apiToken: ${{ secrets.DNS_API_TOKEN }}
loggerUrl: ${{ secrets.LOGGER_URL }}