Skip to content

Support Request: Roomba automatization #255

Support Request: Roomba automatization

Support Request: Roomba automatization #255

# This is a basic workflow to help you get started with Actions
name: Add Supported Device To Readme
on:
issues:
types: labeled
concurrency: 'main'
jobs:
update_devices:
if: github.event.label.name == 'update-devices'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: stefanbuck/github-issue-praser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/add-supported-device.yml
- run: echo '${{ steps.issue-parser.outputs.jsonString }}' > device.json
- run: cat device.json
- run: node .github/workflows/add-model.js
- name: Commit changes
shell: bash
run: |
git config --global user.email "action@github.com"
git config --global user.name "github-actions"
git add README.md
git commit -m 'Added Device To Supported Devices Table'
git push
- uses: peter-evans/close-issue@v1
with:
comment: Thank you for your input! Check out the <a href="../">README</a> to see your device show up.