From 876da031acda6d77bdd87ae703325261220cfa9a Mon Sep 17 00:00:00 2001 From: Robert Cannon Date: Wed, 22 Jul 2020 14:55:50 -0400 Subject: [PATCH] Fix for github actions warning about inputs --- .github/workflows/test.yml | 5 ++++- action.yml | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e800848..02174f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }}` " }' \ No newline at end of file + payload: '{ "channel": "#publishing-tools-ops", "text": "Slack message test for `${{ github.repository }}@${{ steps.metadata.outputs.git_version }}` " }' \ No newline at end of file diff --git a/action.yml b/action.yml index d90593e..63a6a0a 100644 --- a/action.yml +++ b/action.yml @@ -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'