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:
|
||||
- name: Publish to slack
|
||||
id: slack
|
||||
uses: slackapi/slack-github-action@v1.5.0
|
||||
uses: slackapi/slack-github-action@v1.6.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.5.0
|
||||
uses: slackapi/slack-github-action@v1.6.0
|
||||
with:
|
||||
channel-id: 'CTAAHRA79'
|
||||
slack-message: 'posting from a github action!'
|
||||
|
||||
Vendored
+6
-4
@@ -16057,9 +16057,11 @@ try {
|
||||
|
||||
|
||||
let payload = core.getInput('payload');
|
||||
console.log('payload:')
|
||||
console.log(payload)
|
||||
console.log(typeof payload)
|
||||
|
||||
if (payload === undefined) {
|
||||
if (payload.length > 0) {
|
||||
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
|
||||
@@ -16081,11 +16083,11 @@ try {
|
||||
throw 'Need to provide at least one botToken or webhookUrl'
|
||||
}
|
||||
|
||||
const channelId = core.getInput('channel-id');
|
||||
console.log('channelId', channelId, typeof channelId)
|
||||
if (botToken.length > 0 && channelId !== undefined) {
|
||||
if (botToken.length > 0) {
|
||||
const message = core.getInput('slack-message');
|
||||
const channelId = core.getInput('channel-id');
|
||||
console.log('message', message, typeof message)
|
||||
console.log('channelId', channelId, typeof channelId)
|
||||
|
||||
const web = new WebClient(botToken);
|
||||
|
||||
|
||||
@@ -13,10 +13,11 @@ try {
|
||||
|
||||
|
||||
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('no payload passed in, using payload that triggered the GitHub Action')
|
||||
// Get the JSON webhook payload for the event that triggered the workflow
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user