v1.15.0
main.yml / New push to repo (push) Successful in 2s
main.yml / New push to repo (push) Successful in 2s
This commit is contained in:
@@ -7,13 +7,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish to slack
|
- name: Publish to slack
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/[email protected]4.0
|
uses: slackapi/[email protected]5.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'CTAAHRA79'
|
channel-id: 'CTAAHRA79'
|
||||||
slack-message: 'posting from a github action!'
|
slack-message: 'posting from a github action!'
|
||||||
|
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
|
||||||
env:
|
env:
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|
||||||
# Use the output from the `hello` step
|
# Use the output from the `hello` step
|
||||||
- name: Get the output time
|
- name: Get the output time
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
new_push_job:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: New push to repo
|
|
||||||
steps:
|
|
||||||
- name: Publish to slack
|
|
||||||
id: slack
|
|
||||||
uses: slackapi/[email protected]
|
|
||||||
with:
|
|
||||||
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
|
|
||||||
env:
|
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
||||||
|
|
||||||
# Use the output from the `hello` step
|
|
||||||
- name: Get the output time
|
|
||||||
run: echo "The time was ${{ steps.hello.outputs.time }}"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Slack GitHub Action
|
# Slack Send GitHub Action
|
||||||
|
|
||||||
Send data into Slack using this GitHub Action! This package has two different techniques to send data to Slack:
|
Send data into Slack using this GitHub Action! This package has two different techniques to send data to Slack:
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
name: 'Slack Push'
|
name: 'slack-send'
|
||||||
description: 'Publish a message in a channel or send the github payload to workflow builder'
|
description: 'Publish a message in a channel or send a JSON payload to the Slack Workflow Builder'
|
||||||
inputs:
|
inputs:
|
||||||
channel-id: # channel id to post message when using bot token
|
channel-id: # channel id to post message when using bot token
|
||||||
description: 'Slack channel ID where message will be posted. Needed if using bot token'
|
description: 'Slack channel ID where message will be posted. Needed if using bot token'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Publish to slack channel via bot token
|
- name: Publish to slack channel via bot token
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/[email protected]4.0
|
uses: slackapi/[email protected]5.0
|
||||||
with:
|
with:
|
||||||
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
channel-id: 'SLACK_CHANNEL_ID' # ID of Slack Channel you want to post to
|
||||||
slack-message: 'posting from a github action!' # The message you want to post
|
slack-message: 'posting from a github action!' # The message you want to post
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/[email protected]4.0
|
uses: slackapi/[email protected]5.0
|
||||||
with:
|
with:
|
||||||
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
|
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Send GitHub trigger payload to Slack Workflow Builder
|
- name: Send GitHub trigger payload to Slack Workflow Builder
|
||||||
id: slack
|
id: slack
|
||||||
uses: slackapi/[email protected]4.0
|
uses: slackapi/[email protected]5.0
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "slack-github-action",
|
"name": "slack-github-action",
|
||||||
"version": "1.14.0",
|
"version": "1.15.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