v1.15.0
main.yml / New push to repo (push) Successful in 2s

This commit is contained in:
Steve Gill
2021-05-18 13:46:13 -07:00
parent d09f6a279f
commit d5d276d7ae
8 changed files with 10 additions and 27 deletions
@@ -7,13 +7,14 @@ jobs:
steps:
- name: Publish to slack
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
with:
channel-id: 'CTAAHRA79'
slack-message: 'posting from a github action!'
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
env:
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
- name: Get the output time
-18
View File
@@ -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 -1
View File
@@ -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:
+2 -2
View File
@@ -1,5 +1,5 @@
name: 'Slack Push'
description: 'Publish a message in a channel or send the github payload to workflow builder'
name: 'slack-send'
description: 'Publish a message in a channel or send a JSON payload to the Slack Workflow Builder'
inputs:
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'
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Publish to slack channel via bot token
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
with:
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
@@ -7,7 +7,7 @@ jobs:
steps:
- name: Send GitHub trigger payload to Slack Workflow Builder
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
with:
payload: "{\"key\":\"value\",\"foo\":\"bar\"}"
env:
@@ -7,6 +7,6 @@ jobs:
steps:
- name: Send GitHub trigger payload to Slack Workflow Builder
id: slack
uses: slackapi/[email protected]4.0
uses: slackapi/[email protected]5.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"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",
"main": "dist/index.js",
"scripts": {