-
Notifications
You must be signed in to change notification settings - Fork 42
44 lines (39 loc) · 1.19 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Plugin Repository
on:
push:
paths:
- 'listing.json'
workflow_dispatch:
inputs:
message:
description: 'automatically update readme and plugin.json based on updates and latest listing'
required: true
jobs:
run:
name: Update Plugins.json
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run Generator
env:
URL_SHORTENER: ${{ secrets.URL_SHORTENER }}
run: python3 generate_index.py ${{ secrets.M_GITHUB_TOKEN }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: ${{ github.actor }}
author_email: [email protected]
message: ${{ inputs.message }}
add: '["*.json", "*.md"]'
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
notification_title: '{workflow} has {status_message}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}