Update validation.yml

This commit is contained in:
Jon authored and GitHub committed 2024-11-24 12:42:46 -05:00
1 parent 4a30e12c3b
commit 2f4480b2f6
1 file changed
+10 -11
+10 -11
View File
@@ -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