diff --git a/.github/ISSUE_TEMPLATE/Translate-to-FluidNC.md b/.github/ISSUE_TEMPLATE/Translate-to-FluidNC.md new file mode 100644 index 00000000..77e5d288 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Translate-to-FluidNC.md @@ -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. + diff --git a/.github/workflows/convert-machine-file.yaml b/.github/workflows/convert-machine-file.yaml index 366176d7..f29b1dd1 100644 --- a/.github/workflows/convert-machine-file.yaml +++ b/.github/workflows/convert-machine-file.yaml @@ -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<> $GITHUB_ENV - cat cat yaml/convert-job.yaml >> $GITHUB_ENV + cat yaml/convert-job.yaml >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV - name: Add comment