Skip to content

Add matrix input#268

Merged
satterly merged 5 commits intoact10ns:masterfrom
sue445:add_matrix_input
Sep 20, 2023
Merged

Add matrix input#268
satterly merged 5 commits intoact10ns:masterfrom
sue445:add_matrix_input

Conversation

@sue445
Copy link
Copy Markdown
Contributor

@sue445 sue445 commented Sep 8, 2023

Motivation

I often use matrix job.

I want to know from Slack notifications which matrix and which parameter of the test succeeded (or failed).

So I implemented an easy way to display this information.

Example

jobs:
  matrix:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        name1:
          - value1a
          - value1b
        name2:
          - value2a
          - value2b

    steps:
      - name: Slack Notification
        uses: act10ns/slack@v2
        if: always()
        with:
          status: ${{ job.status }}
          webhook-url: ${{ secrets.SLACK_WEBHOOK }}
          matrix: ${{ toJson(matrix) }}

example4

@satterly satterly added the enhancement New feature or request label Sep 20, 2023
@satterly
Copy link
Copy Markdown
Contributor

This is awesome. Thanks a lot. 👍

@satterly satterly merged commit 160cf66 into act10ns:master Sep 20, 2023
@sue445 sue445 deleted the add_matrix_input branch September 20, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants