updated to v1.7.0
customJson.yml / New push to repo (push) Failing after 3s
main.yml / New push to repo (push) Successful in 2s
customJson.yml / New push to repo (push) Failing after 3s
main.yml / New push to repo (push) Successful in 2s
This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Publish to slack
|
||||
id: slack
|
||||
uses: slackapi/slack-github-action@v1.6.0
|
||||
uses: slackapi/slack-github-action@v1.7.0
|
||||
with:
|
||||
payload: '{key: "value", foo: "bar"}'
|
||||
env:
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
steps:
|
||||
- name: Publish to slack
|
||||
id: slack
|
||||
uses: slackapi/slack-github-action@v1.6.0
|
||||
uses: slackapi/slack-github-action@v1.7.0
|
||||
with:
|
||||
channel-id: 'CTAAHRA79'
|
||||
slack-message: 'posting from a github action!'
|
||||
|
||||
Vendored
+3
-2
@@ -16059,14 +16059,15 @@ try {
|
||||
let payload = core.getInput('payload');
|
||||
console.log('payload:')
|
||||
console.log(payload)
|
||||
console.log(typeof payload)
|
||||
console.log(typeof payload, payload.length)
|
||||
|
||||
if (payload.length > 0) {
|
||||
if (payload.length < 1) {
|
||||
console.log('undefined payload');
|
||||
console.log('no payload passed in, using payload that triggered the GitHub Action')
|
||||
// Get the JSON webhook payload for the event that triggered the workflow
|
||||
payload = github.context.payload;
|
||||
} else {
|
||||
console.log('in else')
|
||||
try {
|
||||
// confirm it is valid json
|
||||
payload = JSON.parse(payload);
|
||||
|
||||
@@ -15,14 +15,15 @@ try {
|
||||
let payload = core.getInput('payload');
|
||||
console.log('payload:')
|
||||
console.log(payload)
|
||||
console.log(typeof payload)
|
||||
console.log(typeof payload, payload.length)
|
||||
|
||||
if (payload.length > 0) {
|
||||
if (payload.length < 1) {
|
||||
console.log('undefined payload');
|
||||
console.log('no payload passed in, using payload that triggered the GitHub Action')
|
||||
// Get the JSON webhook payload for the event that triggered the workflow
|
||||
payload = github.context.payload;
|
||||
} else {
|
||||
console.log('in else')
|
||||
try {
|
||||
// confirm it is valid json
|
||||
payload = JSON.parse(payload);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "slack-github-action",
|
||||
"version": "1.6.0",
|
||||
"version": "1.7.0",
|
||||
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user