Skip to content

Commit

Permalink
Fix for github actions warning about inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
robpc committed Jul 22, 2020
1 parent 9d27490 commit 876da03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- id: metadata
name: Get Git Metadata
uses: WPMedia/git-version-action@v1
- uses: ./
with:
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: '{ "channel": "#publishing-tools-ops", "text": "Slack message test for `${{ github.repository }}@${{ github.sha }}` " }'
payload: '{ "channel": "#publishing-tools-ops", "text": "Slack message test for `${{ github.repository }}@${{ steps.metadata.outputs.git_version }}` " }'
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: 'Slack'
description: 'This GitHub action wraps the Slack API method for posting to channels, private groups, and DMs.'
outputs:
slack_token:
inputs:
token:
required: true
payload:
required: true
runs:
using: 'node12'
main: 'dist/index.js'

0 comments on commit 876da03

Please sign in to comment.