ε - Add WorkFlow
This commit is contained in:
parent
a9151d4fd2
commit
5fc153dcf3
31
.github/workflows/discord-commits.yml
vendored
Normal file
31
.github/workflows/discord-commits.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Discord - Commits
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Send Discord notification
|
||||
env:
|
||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
run: |
|
||||
COMMITS_JSON='${{ toJson(github.event.commits) }}'
|
||||
COMMITS=$(echo "$COMMITS_JSON" | jq -r '.[:10][] | "• [\(.id[0:7])] \(.message) — \(.author.name)"' || true)
|
||||
|
||||
REPO="${{ github.repository }}"
|
||||
BRANCH="${{ github.ref_name }}"
|
||||
COMPARE_URL="${{ github.event.compare }}"
|
||||
ACTOR="${{ github.actor }}"
|
||||
|
||||
if [ -z "$COMMITS" ]; then
|
||||
COMMITS="• (Pas de détails de commits disponibles)"
|
||||
fi
|
||||
|
||||
CONTENT="**📌 Push sur \`$REPO\`** (branche: \`$BRANCH\`) par **$ACTOR**\n$COMMITS\n\n🔎 $COMPARE_URL"
|
||||
|
||||
jq -n --arg content "$CONTENT" '{content: $content}' \
|
||||
| curl -s -H "Content-Type: application/json" -X POST -d @- "$DISCORD_WEBHOOK"
|
||||
@ -137,9 +137,7 @@ Espilon transforme des microcontrôleurs ESP32 abordables à **~5€** en agents
|
||||
|
||||
## Modules Disponibles
|
||||
|
||||
> **Note importante** : Les modules sont **mutuellement exclusifs**. Vous devez choisir **un seul module** lors de la configuration via menuconfig.
|
||||
|
||||
### System Module (Built-in, toujours actif)
|
||||
### System Module (Built-in, toujours actif désactivable dans les src)
|
||||
|
||||
Commandes système de base :
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user