Supported Device: #264
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |