Skip to content

Commit 2951077

Browse files
authored
Merge pull request #5672 from vector-im/michaelkaye/use_hookshot
Move to using hookshot to send notifications, rather than using matrix client directly.
2 parents 8eaa2f8 + acc9874 commit 2951077

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,9 @@ jobs:
330330
if: always() && github.event_name != 'workflow_dispatch'
331331
# No concurrency required, runs every time on a schedule.
332332
steps:
333-
- uses: michaelkaye/matrix-hookshot-action@v0.3.0
333+
- uses: michaelkaye/matrix-hookshot-action@v1.0.0
334334
with:
335335
github_token: ${{ secrets.GITHUB_TOKEN }}
336-
matrix_access_token: ${{ secrets.ELEMENT_ANDROID_NOTIFICATION_ACCESS_TOKEN }}
337-
matrix_room_id: ${{ secrets.ELEMENT_ANDROID_INTERNAL_ROOM_ID }}
336+
hookshot_url: ${{ secrets.ELEMENT_ANDROID_HOOKSHOT_URL }}
338337
text_template: "{{#if '${{ github.event_name }}' == 'schedule' }}Nightly test run{{else}}Test run (on ${{ github.ref }}){{/if }}: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}}, {{/if}}{{/with}}{{/each}}"
339338
html_template: "{{#if '${{ github.event_name }}' == 'schedule' }}Nightly test run{{else}}Test run (on ${{ github.ref }}){{/if }}: {{#each job_statuses }}{{#with this }}{{#if completed }}<br />{{icon conclusion}} {{name}} <font color='{{color conclusion}}'>{{conclusion}} at {{completed_at}} <a href=\"{{html_url}}\">[details]</a></font>{{/if}}{{/with}}{{/each}}"

0 commit comments

Comments
 (0)