v1.11.0
customJson.yml / New push to repo (push) Failing after 11s
main.yml / New push to repo (push) Failing after 6s
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:
@@ -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:
|
||||
|
||||
@@ -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!'
|
||||
|
||||
Vendored
+9
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user