jasongitmail / fast-webhook Goto Github PK
View Code? Open in Web Editor NEWA simple, fast-compiling, JavaScript Github Action to send a POST request with a JSON body to a URL.
License: MIT License
A simple, fast-compiling, JavaScript Github Action to send a POST request with a JSON body to a URL.
License: MIT License
Hi there,
I suddenly am running into an error when using this action. I've made no changes and it doesn't seem like you did either. My gut feeling is that this is a change in the underlying GH Actions infra that broke the feature.
My code:
- name: 'Trigger Netlify deployment'
uses: jasongitmail/fast-webhook@v1
with:
url: ${{ secrets.WEBHOOK_URL }}
json: '{}'
The error:
Current runner version: '2.272.0'
Operating System
Ubuntu
18.04.4
LTS
Virtual Environment
Environment: ubuntu-18.04
Version: 20200802.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200802.1/images/linux/Ubuntu1804-README.md
Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@v2'
Download action repository 's0/git-publish-subdir-action@develop'
Download action repository 'jasongitmail/fast-webhook@v1'
##[error]jasongitmail/fast-webhook/v1/action.yml (Line: 15, Col: 9): Unexpected value ''
##[error]jasongitmail/fast-webhook/v1/action.yml (Line: 15, Col: 9): Unexpected value ''
##[error]System.ArgumentException: Unexpected type 'NullToken' encountered while reading 'outputs'. The type 'MappingToken' was expected.
at GitHub.DistributedTask.ObjectTemplating.Tokens.TemplateTokenExtensions.AssertMapping(TemplateToken value, String objectDescription)
at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
##[error]Fail to load jasongitmail/fast-webhook/v1/action.yml
Great webhook solution! Very fast. My webhook is working as needed on the other end however It's failing in Githubs eyes:
build Error: Status code was not 200 or 201. Was: 204
I'm familiar with actions having something similar to the following:
steps:
- uses: jasongitmail/fast-webhook@v1
with:
url: ${{ secrets.WEBHOOK }}
json: '{}'
accept: 200,201,204
Let me know if I'm missing something or if there is a similar way for me to input this. From what I can tell URL and JSON are the only inputs available.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.