calamares/.github/workflows/issues.yml

25 lines
809 B
YAML
Raw Normal View History

name: issues
2021-01-31 22:01:41 +01:00
on:
issues:
types: [opened, reopened, closed]
jobs:
irc:
runs-on: ubuntu-latest
steps:
- name: "notify: new"
2021-02-01 16:28:20 +01:00
if: github.event.issue.state == 'open'
2021-05-28 17:38:30 +02:00
uses: calamares/actions/matrix-notify@v2
with:
2021-05-25 16:25:30 +02:00
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "OPENED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"
- name: "notify: closed"
2021-02-01 16:28:20 +01:00
if: github.event.issue.state != 'open'
2021-05-28 17:38:30 +02:00
uses: calamares/actions/matrix-notify@v2
2021-01-31 22:01:41 +01:00
with:
2021-05-25 16:25:30 +02:00
token: ${{ secrets.MATRIX_TOKEN }}
room: ${{ secrets.MATRIX_ROOM }}
message: "CLOSED ${{ github.event.issue.html_url }} by ${{ github.actor }} ${{ github.event.issue.title }}"