Skip to content

CI

CI #760

Workflow file for this run

name: CI
on:
workflow_dispatch:
jobs:
get-notifications:
name: Get notifications
runs-on: ubuntu-latest
outputs:
notifications: ${{ steps.generator.outputs.notifications }}
steps:
- name: Generation step
uses: amegias/[email protected]
id: generator
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
default-ttl: '259200' # 3 days
labels-ttl: '{ "bug-notification": 86400 }' # bug-notification: 1 day
send-notification:
name: (Simulate) Send notifications
needs: get-notifications
if: ${{ needs.get-notifications.outputs.notifications != '[]' }}
runs-on: ubuntu-latest
strategy:
matrix:
notifications: ${{ fromJSON(needs.get-notifications.outputs.notifications) }}
steps:
- name: Print result
env:
URL: ${{ toJSON(matrix.notifications.pullRequest.url) }}
RECIPIENTS: ${{ toJSON(matrix.notifications.recipient.login) }}
run: echo "$URL must be reviewed by $RECIPIENTS"