Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken code #21

Open
stolenmuppets opened this issue Aug 22, 2024 · 0 comments
Open

Broken code #21

stolenmuppets opened this issue Aug 22, 2024 · 0 comments

Comments

@stolenmuppets
Copy link

Failing example:
Github workflow yml:

name: Discord Test

on:
workflow_dispatch:
branches:
- main

jobs:
discord_notify:
runs-on: ubuntu-latest
steps:
- name: Linux Test Info
uses: rjstone/discord-webhook-notify@v1
with:
severity: info
details: Test succeeded.
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}

output logs from github actions:

2024-08-22T23:34:36.0233952Z Current runner version: '2.319.1'
2024-08-22T23:34:36.0257511Z ##[group]Operating System
2024-08-22T23:34:36.0258294Z Ubuntu
2024-08-22T23:34:36.0258697Z 22.04.4
2024-08-22T23:34:36.0258994Z LTS
2024-08-22T23:34:36.0259424Z ##[endgroup]
2024-08-22T23:34:36.0259827Z ##[group]Runner Image
2024-08-22T23:34:36.0260324Z Image: ubuntu-22.04
2024-08-22T23:34:36.0260716Z Version: 20240818.1.0
2024-08-22T23:34:36.0261731Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240818.1/images/ubuntu/Ubuntu2204-Readme.md
2024-08-22T23:34:36.0263265Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240818.1
2024-08-22T23:34:36.0264159Z ##[endgroup]
2024-08-22T23:34:36.0264561Z ##[group]Runner Image Provisioner
2024-08-22T23:34:36.0265080Z 2.0.382.1
2024-08-22T23:34:36.0265675Z ##[endgroup]
2024-08-22T23:34:36.0281201Z ##[group]GITHUB_TOKEN Permissions
2024-08-22T23:34:36.0282876Z Actions: write
2024-08-22T23:34:36.0283603Z Attestations: write
2024-08-22T23:34:36.0284098Z Checks: write
2024-08-22T23:34:36.0284537Z Contents: write
2024-08-22T23:34:36.0284922Z Deployments: write
2024-08-22T23:34:36.0285358Z Discussions: write
2024-08-22T23:34:36.0285848Z Issues: write
2024-08-22T23:34:36.0286189Z Metadata: read
2024-08-22T23:34:36.0286586Z Packages: write
2024-08-22T23:34:36.0287038Z Pages: write
2024-08-22T23:34:36.0287378Z PullRequests: write
2024-08-22T23:34:36.0287820Z RepositoryProjects: write
2024-08-22T23:34:36.0288346Z SecurityEvents: write
2024-08-22T23:34:36.0288772Z Statuses: write
2024-08-22T23:34:36.0289118Z ##[endgroup]
2024-08-22T23:34:36.0292093Z Secret source: Actions
2024-08-22T23:34:36.0292774Z Prepare workflow directory
2024-08-22T23:34:36.0925674Z Prepare all required actions
2024-08-22T23:34:36.1085566Z Getting action download info
2024-08-22T23:34:36.2189511Z Download action repository 'rjstone/discord-webhook-notify@v1' (SHA:1399c1b2d57cc05894d506d2cfdc33c5f012b993)
2024-08-22T23:34:36.8964221Z Complete job name: discord_notify
2024-08-22T23:34:37.0178384Z ##[group]Run rjstone/discord-webhook-notify@v1
2024-08-22T23:34:37.0179280Z with:
2024-08-22T23:34:37.0179667Z severity: info
2024-08-22T23:34:37.0180101Z details: Test succeeded.
2024-08-22T23:34:37.0181084Z webhookUrl: ***
2024-08-22T23:34:37.0181506Z ##[endgroup]
2024-08-22T23:34:37.2846738Z Test succeeded.
2024-08-22T23:34:42.8288431Z undefined:1
2024-08-22T23:34:42.8288982Z
2024-08-22T23:34:42.8289418Z ^
2024-08-22T23:34:42.8291437Z
2024-08-22T23:34:42.8292503Z SyntaxError: Unexpected token '<', ")
2024-08-22T23:34:42.8295467Z at /home/runner/work/_actions/rjstone/discord-webhook-notify/v1/node_modules/webhook-discord/lib/webhook.js:22:35
2024-08-22T23:34:42.8302901Z at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-08-22T23:34:42.8303799Z
2024-08-22T23:34:42.8303991Z Node.js v20.13.1
2024-08-22T23:34:42.8604991Z Cleaning up orphan processes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant