Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add matrix input #268

Merged
merged 5 commits into from Sep 20, 2023
Merged

Add matrix input #268

merged 5 commits into from Sep 20, 2023

Conversation

sue445
Copy link
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
Contributor

This is awesome. Thanks a lot. 👍

@satterly satterly merged commit 160cf66 into act10ns:master Sep 20, 2023
5 checks passed
@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.

None yet

2 participants