mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-13 18:15:58 +00:00
Update validation.yml
This commit is contained in:
1 file changed
+10
-11
@@ -17,12 +17,12 @@ on:
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-validation
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
jobs:
|
||||
dns:
|
||||
name: DNS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
name: DNS
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
@@ -37,15 +37,15 @@ jobs:
|
||||
id: dns_check
|
||||
uses: is-a-dev/dnscontrol-action@main
|
||||
with:
|
||||
args: check
|
||||
config_file: "dnsconfig.js"
|
||||
args: check
|
||||
config_file: "dnsconfig.js"
|
||||
|
||||
- name: Add Validated DNS Label
|
||||
if: ${{ steps.dns_check.outcome == 'success' }}
|
||||
uses: actions-ecosystem/action-add-labels@v1
|
||||
with:
|
||||
labels: "Validated DNS"
|
||||
github_token: ${{ steps.create_token.outputs.token }}
|
||||
labels: "Validated DNS"
|
||||
github_token: ${{ steps.create_token.outputs.token }}
|
||||
- name: Remove Invalid DNS Label
|
||||
if: ${{ steps.dns_check.outcome == 'success' }}
|
||||
uses: actions-ecosystem/action-remove-labels@v1
|
||||
@@ -59,13 +59,12 @@ jobs:
|
||||
with:
|
||||
labels: "Invalid DNS"
|
||||
github_token: ${{ steps.create_token.outputs.token }}
|
||||
|
||||
- name: Remove Validated DNS Label
|
||||
if: ${{ failure() }}
|
||||
uses: actions-ecosystem/action-remove-labels@v1
|
||||
with:
|
||||
labels: "Validated DNS"
|
||||
github_token: ${{ steps.create_token.outputs.token }}
|
||||
labels: "Validated DNS"
|
||||
github_token: ${{ steps.create_token.outputs.token }}
|
||||
|
||||
json:
|
||||
name: JSON
|
||||
|
||||
Reference in new issue
Block a user