v1.11.0
customJson.yml / New push to repo (push) Failing after 11s
main.yml / New push to repo (push) Failing after 6s

This commit is contained in:
Steve Gill
2021-05-17 13:41:53 -07:00
parent f49be1c438
commit 958cdf4fee
5 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/[email protected]0.0
uses: slackapi/[email protected]1.0
with:
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
env:
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/[email protected]0.0
uses: slackapi/[email protected]1.0
with:
channel-id: 'CTAAHRA79'
slack-message: 'posting from a github action!'
+9 -2
View File
@@ -16071,6 +16071,7 @@ try {
try {
// confirm it is valid json
payload = JSON.parse(payload);
console.log('vaid json')
} catch (e) {
// passed in payload wasn't valid json
console.error("passed in payload was invalid")
@@ -16100,7 +16101,10 @@ try {
}
}
if (webhookUrl.length > 0) {
console.log('webhookURL type', typeof webhookUrl)
if (typeof webhookUrl !== undefined) {
// && webhookUrl.length > 0
console.log('flattening');
// send flat payload to webhookUrl
const flatPayload = flatten(payload);
@@ -16110,15 +16114,18 @@ try {
flatPayload[key] = '' + flatPayload[key];
})
console.log('flattened Payload');
console.log(flatPayload);
console.log('sending webhook')
axios.post(webhookUrl, flatPayload)
}
const time = (new Date()).toTimeString();
core.setOutput("time", time);
} catch (error) {
} catch (error) {
console.log('error in big try')
core.setFailed(error.message);
}
+2 -1
View File
@@ -80,6 +80,7 @@ try {
const time = (new Date()).toTimeString();
core.setOutput("time", time);
} catch (error) {
} catch (error) {
console.log('error in big try')
core.setFailed(error.message);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "slack-github-action",
"version": "1.10.0",
"version": "1.11.0",
"description": "The official slack github action. Use this to send data into your Slack workspace",
"main": "dist/index.js",
"scripts": {