From 4523662791de6679dd6346bf0dd0c6102f5403d7 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Thu, 29 Oct 2020 14:16:44 -0700 Subject: [PATCH] updated workflow --- .github/workflows/main.yml | 8 ++++---- README.md | 4 +++- action.yml | 6 +++--- package.json | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fafb86d..4d762ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,12 @@ on: [push] jobs: - hello_world_job: + new_push_job: runs-on: ubuntu-latest - name: A job to say hello + name: New push to repo steps: - - name: Hello world action step - id: hello + - name: Publish to slack + id: slack uses: stevengill/slack-github-action@v1.2.0 with: channel-id: 'CTAAHRA79' diff --git a/README.md b/README.md index 62fb7d7..3fce6df 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# slack-github-action \ No newline at end of file +# slack-github-action + +Send a github payload to Slack's workflow builder. This package also accepts a BotToken from Slack to post a message to specific channel or person in Slack. \ No newline at end of file diff --git a/action.yml b/action.yml index a7e38a4..c5cbaec 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ -name: 'Hello World' -description: 'Greet someone and record the time' +name: 'Slack Push' +description: 'Publish a message in a channel or send the github payload to 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' @@ -9,7 +9,7 @@ inputs: required: false outputs: time: # id of output - description: 'The time we greeted you' + description: 'The time' runs: using: 'node12' main: 'index.js' \ No newline at end of file diff --git a/package.json b/package.json index 703cf1c..cf0d734 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "slack-github-action", - "version": "1.1.0", + "version": "1.3.0", "description": "", "main": "index.js", "scripts": {