SethCohen / github-releases-to-discord

Posts a GitHub Release changelog to a specified Discord channel
MIT License
15 stars 7 forks source link

Error: Cannot read properties of undefined (reading 'body') #29

Open dsbilling opened 1 week ago

dsbilling commented 1 week ago

Workflow file:

name: "Staging Deploy"
on:
    push:
        branches:
            - develop
jobs:
    deploy:
        name: "Deploy"
        runs-on: ubuntu-latest
        steps:
            -   name: Post release to Discord
                uses: SethCohen/github-releases-to-discord@v1.15.0
                with:
                    webhook_url: ${{ secrets.DISCORD_STAGING_WEBHOOK_URL }}
                    color: "16753920"
                    username: "deploy-bot"
                    content: "A change has been deployed to staging! :rocket:"
                    footer_title: "Deployment"
                    footer_timestamp: true

Logs from runner:

2024-09-20T21:19:35.6601848Z Current runner version: '2.319.1'
2024-09-20T21:19:35.6632150Z ##[group]Operating System
2024-09-20T21:19:35.6633277Z Ubuntu
2024-09-20T21:19:35.6634116Z 22.04.5
2024-09-20T21:19:35.6634785Z LTS
2024-09-20T21:19:35.6635426Z ##[endgroup]
2024-09-20T21:19:35.6636271Z ##[group]Runner Image
2024-09-20T21:19:35.6637085Z Image: ubuntu-22.04
2024-09-20T21:19:35.6637970Z Version: 20240915.1.0
2024-09-20T21:19:35.6639963Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240915.1/images/ubuntu/Ubuntu2204-Readme.md
2024-09-20T21:19:35.6642564Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240915.1
2024-09-20T21:19:35.6644319Z ##[endgroup]
2024-09-20T21:19:35.6645048Z ##[group]Runner Image Provisioner
2024-09-20T21:19:35.6645862Z 2.0.384.1
2024-09-20T21:19:35.6646664Z ##[endgroup]
2024-09-20T21:19:35.6670558Z ##[group]GITHUB_TOKEN Permissions
2024-09-20T21:19:35.6673258Z Actions: write
2024-09-20T21:19:35.6674238Z Attestations: write
2024-09-20T21:19:35.6675265Z Checks: write
2024-09-20T21:19:35.6675931Z Contents: write
2024-09-20T21:19:35.6676683Z Deployments: write
2024-09-20T21:19:35.6677377Z Discussions: write
2024-09-20T21:19:35.6678102Z Issues: write
2024-09-20T21:19:35.6678814Z Metadata: read
2024-09-20T21:19:35.6679828Z Packages: write
2024-09-20T21:19:35.6680614Z Pages: write
2024-09-20T21:19:35.6681402Z PullRequests: write
2024-09-20T21:19:35.6682123Z RepositoryProjects: write
2024-09-20T21:19:35.6682918Z SecurityEvents: write
2024-09-20T21:19:35.6683762Z Statuses: write
2024-09-20T21:19:35.6684402Z ##[endgroup]
2024-09-20T21:19:35.6688801Z Secret source: Actions
2024-09-20T21:19:35.6690297Z Prepare workflow directory
2024-09-20T21:19:35.7408322Z Prepare all required actions
2024-09-20T21:19:35.7568057Z Getting action download info
2024-09-20T21:19:35.9063333Z Download action repository 'SethCohen/github-releases-to-discord@v1.15.0' (SHA:7de2fd1c2a654b7fdff3a6bd23f6ec401f0966f9)
2024-09-20T21:19:36.8374673Z Complete job name: Deploy
2024-09-20T21:19:36.9340534Z ##[group]Run SethCohen/github-releases-to-discord@v1.15.0
2024-09-20T21:19:36.9341238Z with:
2024-09-20T21:19:36.9342568Z   webhook_url: ***
2024-09-20T21:19:36.9342909Z   color: 16753920
2024-09-20T21:19:36.9343238Z   username: deploy-bot
2024-09-20T21:19:36.9344724Z   content: A change has been deployed to staging! :rocket:
2024-09-20T21:19:36.9345330Z   footer_title: Deployment
2024-09-20T21:19:36.9345718Z   footer_timestamp: true
2024-09-20T21:19:36.9346092Z   max_description: 4096
2024-09-20T21:19:36.9346454Z   reduce_headings: false
2024-09-20T21:19:36.9346812Z ##[endgroup]
2024-09-20T21:19:37.1331760Z ##[error]Cannot read properties of undefined (reading 'body')
2024-09-20T21:19:37.1617078Z Uploading runner diagnostic logs
2024-09-20T21:19:37.1804593Z Completed runner diagnostic log upload
2024-09-20T21:19:37.1805117Z Cleaning up orphan processes

Do you have any ideas on why this is happening? I am using a new and fresh webhook from Discord.