This GitHub Action sets up the td command-line tool and provides an example of how to use it to create tasks in tududi when a compilation error occurs.
- uses: klahr/setup-td@main
with:
email: ${{ secrets.EMAIL }}
password: ${{ secrets.PASSWORD }}
host: 'https://example.com'
port: 8080
- name: Compile
run: |
if ! out=$(gcc example/main.c 2>&1); then
echo "\`\`\`$out\`\`\`" | td task add "Run #${{ github.run_number }} - Compilation failed"
fiWe enthusiastically encourage and welcome contributions.
