ERROR: Fehlerhafte Daten in Grafiken #217
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
name: Labeled ERPNext Task | |
on: | |
issues: | |
types: | |
- labeled | |
jobs: | |
create-task: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Format Payload | |
run: | | |
echo '{ | |
"subject": "GH#${{ github.event.issue.number }} - ${{ github.event.issue.title }}", | |
"project": "${{ github.event.label.name }}", | |
"status": "Open", | |
"description": "<p><a href='${{ github.event.issue.html_url }}'>GH#${{ github.event.issue.number }}</a></p><br>${{ github.event.issue.body }}" | |
}' > payload.json | |
- name: Make API Request to ERPNext | |
run: | | |
curl -X POST -H "Content-Type: application/json" -H "Authorization: ${{ secrets.WEBHOOK_TOKEN }}" -d @payload.json https://erp.wunderbyte.at/api/resource/Task |