Skip to content

droid

droid #35

Workflow file for this run

---
name: droid
on:
issues:
types:
- opened
issue_comment:
types:
- created
pull_request:
types:
- opened
jobs:
parse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
id: c-3po
with:
expect: |
- pattern: ^/hello (?<value>.+)$
- pattern: ^/chances (?<output>[^=]+)=(?<value>.*)$
- command: intrusion
- command: disappeared
value: R2-D2
description: 'true'
- if: ${{ steps.c-3po.outputs.is-hello }}
run: echo "${{ steps.c-3po.outputs.has-hello }}, it is you, it Is You!"
- if: ${{ steps.c-3po.outputs.is-chances && steps.c-3po.outputs.has-chances-survival }}
run: echo "R2 says the chances of survival are ${{ steps.c-3po.outputs.has-chances-survival }}... to one"
- if: ${{ steps.c-3po.outputs.is-chances && steps.c-3po.outputs.has-chances-win > 0 }}
run: echo "We'll take the next chance, and the next."
- if: ${{ steps.c-3po.outputs.is-intrusion }}
run: echo "We're doomed"
- if: ${{ steps.c-3po.outputs.is-disappeared }}
run: echo "${{ steps.c-3po.outputs.has-disappeared }}, where are you?"