Skip to content

Notify Hub on Content Update #6

Notify Hub on Content Update

Notify Hub on Content Update #6

Workflow file for this run

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 }}"