mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-23 17:03:42 +00:00
Create Check-Altium-DRC.RUL.yml
This commit is contained in:
parent
5d5d5331b1
commit
94dfdddf28
35
.allspice/workflows/Check-Altium-DRC.RUL.yml
Normal file
35
.allspice/workflows/Check-Altium-DRC.RUL.yml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Check-Altium-DRC.RUL
|
||||
|
||||
on:
|
||||
push:
|
||||
issues:
|
||||
# Trigger on issue open, close, or reopen
|
||||
types: [opened, closed, reopened]
|
||||
|
||||
jobs:
|
||||
Check-Altium-DRC:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Download reference file
|
||||
run: curl -o reference_file.ext https://hub.allspice.io/AllSpice-demos/Altium-archimajor-3d-printer-driver-demo/src/branch/main/Archimajor.RUL
|
||||
|
||||
- name: Compare files
|
||||
id: diff
|
||||
run: diff -u reference_file.ext filename.ext || true
|
||||
|
||||
- name: Save diff to file
|
||||
if: steps.diff.outcome != 'success'
|
||||
run: diff -u reference_file.ext filename.ext > diff.txt
|
||||
|
||||
- name: Show file contents
|
||||
run: cat filename.ext
|
||||
|
||||
- name: Upload diff.txt
|
||||
if: steps.diff.outcome != 'success'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: diff
|
||||
path: diff.txt
|
Loading…
Reference in New Issue
Block a user