mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-08-08 22:25:19 +00:00
Merge pull request #280 from is-a-good-dev/WilliamDavidHarrison/update-workflows
Update workflows
This commit is contained in:
@@ -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
|
||||
@@ -25,19 +25,17 @@ jobs:
|
||||
env:
|
||||
FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||
actions_path: ${{ github.workspace }}
|
||||
- name: Post message
|
||||
- name: Comment Results
|
||||
if: steps.tests.outputs.shouldComment == 'true'
|
||||
uses: mshick/add-pr-comment@v1
|
||||
with:
|
||||
message: |
|
||||
**Validation Results**
|
||||
- Information Validation
|
||||
${{steps.tests.outputs.infoMessage}}
|
||||
${{steps.tests.outputs.infoReason}}
|
||||
- DNS Record Validation
|
||||
${{steps.tests.outputs.recordMessage}}
|
||||
${{steps.tests.outputs.recordInfo}}
|
||||
- JSON File Content
|
||||
message: |
|
||||
## Validation Results
|
||||
| Information Validation | Record Validation |
|
||||
|-|-|
|
||||
| ${{steps.tests.outputs.infoMessage}}\n${{steps.tests.outputs.infoReason}} | ${{steps.tests.outputs.recordMessage}}\n${{steps.tests.outputs.recordInfo}} |
|
||||
|
||||
### JSON File Content
|
||||
```json
|
||||
${{steps.tests.outputs.jsonData}}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user