1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-08-31 18:11:48 +02:00

Added issue template and revised some names in the workflow

This commit is contained in:
Mitch Bradley
2021-12-21 15:00:22 -10:00
parent 35fbd737c4
commit de3425079b
2 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
---
name: Translate Machine.h File to FluidNC
about: Use this template to translate a Grbl_Esp32 Machine.h to FluidNC YAML format.
title: 'Translate Machine.h for YOUR NAME'
labels: ''
assignees: ''
---
This issue will automatically convert a Grbl_Esp32 "machine.h" file to FluidNC YAML format.
Change YOUR NAME in the title to some string that identifies your machine configuration.
Attach your Machine.h file here - but first change the .h extension to .txt because GitHub will not allow you to attach a file with a .h extension. Submit the issue, and after a few minutes, a new comment will appear with the FluidNC YAML file.

View File

@@ -4,8 +4,8 @@ on:
types:
- opened
jobs:
add-comment:
if: contains(github.event.issue.title, 'translate machine file')
convert-from-issue:
if: contains(github.event.issue.title, 'Translate Machine.h')
runs-on: ubuntu-latest
permissions:
issues: write
@@ -51,7 +51,7 @@ jobs:
mv $file_path Grbl_Esp32/src/Machines/convert-job.h
python convert-machine.py convert-job.h
echo 'file_content<<EOF' >> $GITHUB_ENV
cat cat yaml/convert-job.yaml >> $GITHUB_ENV
cat yaml/convert-job.yaml >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Add comment