# GitHub Actions failure alerts to iPhone

Use Nerve when GitHub Actions should send encrypted failure alerts to iPhone and the GitHub secret should only send, not read, decrypt or execute commands.

```yaml
- name: Notify Nerve on failure
  if: failure()
  env:
    NERVE_DSN: ${{ secrets.NERVE_DSN }}
  run: |
    printf 'FAILED: %s\nbranch: %s\nrun: %s\n' \
      "${{ github.repository }}" \
      "${{ github.ref_name }}" \
      "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
      | nerve send --severity critical --title "CI failed"
```
