Body not formatted as markdown
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- github-actions, javascript
Direzione di ricerca
Riproduci il workflow fornito attivato da una release e verifica come l’Action gestisce il corpo della release nel payload di Slack. Confronta il risultato renderizzato con gli screenshot atteso e ricevuto; il lavoro è terminato quando le note di release generate appaiono con la formattazione prevista nella notifica.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When creating a release using the auto generated release notes, which is markdown. The body ${{ github.release.event.body }} is not being formatted as expected
Workflow
on:
release:
types:
- released
- prereleased
jobs:
notify:
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.event.release.body || 'No release body provided' }}"
shell: bash
- run: |
echo "Release event detected: ${{ github.event_name }}"
echo "Release name: ${{ github.event.release.name || github.event.release.tag_name }}"
echo "Release body: ${{ github.event.release.body }}"
echo "Release URL: ${{ github.event.release.html_url }}"
echo "Release is a pre-release: ${{ github.event.release.prerelease }}"
echo "Workflow run ID: ${{ github.run_id }}"
echo "Repository: ${{ github.repository }}"
echo "Server URL: ${{ github.server_url }}"
- name: Send Slack Notification
uses: slackapi/slack-github-action@v2.1.0
with:
webhook-type: incoming-webhook
webhook: "${{ secrets.SLACK_WEBHOOK_URL }}"
payload: |
text: "🚀 🔖 ✨ Release notice ${{ github.event.release.name || github.event.release.tag_name }} ✨ 🔖 🚀"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "*🚀 🔖 ✨ Release notice ${{ github.event.release.name || github.event.release.tag_name }} ✨ 🔖 🚀*"
- type: "context"
elements:
- type: "mrkdwn"
text: "*Build for*: ${{ github.event.release.prerelease && 'Stage' || 'Production' }}"
- type: "mrkdwn"
text: "*Version*: ${{ github.event.release.tag_name }}"
- type: "divider"
- type: "section"
text:
type: "mrkdwn"
text: "${{ github.event.release.body }}"
- type: "divider"
- type: "context"
elements:
- type: "mrkdwn"
text: "<${{ github.event.release.html_url }}|*Full Changelog*>"
- type: "mrkdwn"
text: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Run>"
Expected:
Recieved:
- Lingua principale
- JavaScript
- Stelle
- 1.3k
- Fork
- 200
- Merge medio
- 2h 59m
- PR unite (30g)
- 6
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di slackapi/slack-github-action
-
docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
slackapi/slack-github-action#667 ·
-
discussion security semver:major
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
slackapi/slack-github-action#621 · 1 commento · 1 reazione ·
-
dependencies question
slackapi/slack-github-action#671 · 2 commenti · 1 assegnatario ·
-
needs info question
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
slackapi/slack-github-action#654 · 7 commenti · 5 reazioni ·
-
question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
slackapi/slack-github-action#520 · 1 commento ·
Tutte le issue di slackapi/slack-github-action
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mksglu/context-mode#1200 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
neondatabase/website#5944 ·
-
module: core
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
jaegertracing/jaeger-ui#4506 ·