updated to 1.6.0
customJson.yml / New push to repo (push) Successful in 3s
main.yml / New push to repo (push) Failing after 1s
customJson.yml / New push to repo (push) Successful in 3s
main.yml / New push to repo (push) Failing after 1s
This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish to slack
|
- name: Publish to slack
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.5.0
|
uses: slackapi/slack-github-action@v1.6.0
|
||||||
with:
|
with:
|
||||||
payload: '{key: "value", foo: "bar"}'
|
payload: '{key: "value", foo: "bar"}'
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish to slack
|
- name: Publish to slack
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/slack-github-action@v1.5.0
|
uses: slackapi/slack-github-action@v1.6.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'CTAAHRA79'
|
channel-id: 'CTAAHRA79'
|
||||||
slack-message: 'posting from a github action!'
|
slack-message: 'posting from a github action!'
|
||||||
|
|||||||
Vendored
+6
-4
@@ -16057,9 +16057,11 @@ try {
|
|||||||
|
|
||||||
|
|
||||||
let payload = core.getInput('payload');
|
let payload = core.getInput('payload');
|
||||||
|
console.log('payload:')
|
||||||
console.log(payload)
|
console.log(payload)
|
||||||
|
console.log(typeof payload)
|
||||||
|
|
||||||
if (payload === undefined) {
|
if (payload.length > 0) {
|
||||||
console.log('undefined payload');
|
console.log('undefined payload');
|
||||||
console.log('no payload passed in, using payload that triggered the GitHub Action')
|
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
|
// Get the JSON webhook payload for the event that triggered the workflow
|
||||||
@@ -16081,11 +16083,11 @@ try {
|
|||||||
throw 'Need to provide at least one botToken or webhookUrl'
|
throw 'Need to provide at least one botToken or webhookUrl'
|
||||||
}
|
}
|
||||||
|
|
||||||
const channelId = core.getInput('channel-id');
|
if (botToken.length > 0) {
|
||||||
console.log('channelId', channelId, typeof channelId)
|
|
||||||
if (botToken.length > 0 && channelId !== undefined) {
|
|
||||||
const message = core.getInput('slack-message');
|
const message = core.getInput('slack-message');
|
||||||
|
const channelId = core.getInput('channel-id');
|
||||||
console.log('message', message, typeof message)
|
console.log('message', message, typeof message)
|
||||||
|
console.log('channelId', channelId, typeof channelId)
|
||||||
|
|
||||||
const web = new WebClient(botToken);
|
const web = new WebClient(botToken);
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ try {
|
|||||||
|
|
||||||
|
|
||||||
let payload = core.getInput('payload');
|
let payload = core.getInput('payload');
|
||||||
console.log('payload')
|
console.log('payload:')
|
||||||
console.log(payload)
|
console.log(payload)
|
||||||
|
console.log(typeof payload)
|
||||||
|
|
||||||
if (payload === undefined) {
|
if (payload.length > 0) {
|
||||||
console.log('undefined payload');
|
console.log('undefined payload');
|
||||||
console.log('no payload passed in, using payload that triggered the GitHub Action')
|
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
|
// Get the JSON webhook payload for the event that triggered the workflow
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.5.0",
|
"version": "1.6.0",
|
||||||
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
"description": "The official slack github action. Use this to send data into your Slack workspace",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user