-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1 KB
/
notify-hub.yml
File metadata and controls
35 lines (31 loc) · 1 KB
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
name: Notify Hub on Content Update
on:
push:
branches: [main]
paths:
- 'content/**'
workflow_dispatch:
jobs:
notify-infotecha-hub:
runs-on: ubuntu-latest
steps:
- name: Notify infotecha hub
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT_TOKEN }}
repository: info-tech-io/infotecha
event-type: module-updated
client-payload: |
{
"module_name": "linux_base",
"content_repo": "mod_linux_base",
"updated_at": "${{ github.event.head_commit.timestamp }}",
"commit_sha": "${{ github.sha }}",
"commit_message": "${{ github.event.head_commit.message }}"
}
- name: Log notification
run: |
echo "🚀 Notified infotecha hub about linux_base module update"
echo "📦 Repository: mod_linux_base"
echo "🔄 Commit: ${{ github.sha }}"
echo "⏰ Timestamp: ${{ github.event.head_commit.timestamp }}"