Update and rename addRecords.yml to update-records.yml

This commit is contained in:
William Harrison authored and GitHub committed 2022-11-29 08:41:44 +08:00
1 parent c75c8a7ac7
commit c0761bec63
1 file changed
+5 -5
@@ -1,7 +1,7 @@
name: Add DNS records
name: Update Records
on:
push:
branches: [ main ]
branches: [main]
jobs:
validation:
@@ -13,17 +13,17 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Get changed files
- name: Get Files
id: changed-files
uses: tj-actions/changed-files@v34
with:
files: |
sub-logs/**
reserved/**
- name: Install modules
- name: Install Modules
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn
- name: Add records
- name: Publish Records
if: steps.changed-files.outputs.any_changed == 'true'
id: tests
run: yarn add-records