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'