-
Notifications
You must be signed in to change notification settings - Fork 61
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
At the moment the matrix runs are triggering a notification for each run and the steps: ${{ toJson(steps) }}
ends up having many steps marked 🚫 and only the specific matrix run with ✔️
Any idea how to filter and only report the current path in the slack notification.
name: Build packages
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build-packages:
runs-on: ubuntu-latest
strategy:
matrix:
image-name:
- cake-api
- frontend
- chatapp
- landing
- nginx-proxy
env:
IMAGE_NAME: ${{ matrix.image-name }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: actions/checkout@v2
- name: Build frontend
id: build-frontend
if: ${{ matrix.image-name == 'frontend' }}
run: docker build ./web/frontend/ --file ./web/frontend/Dockerfile
- name: Build chatapp
id: build-chatapp
if: ${{ matrix.image-name == 'chatapp' }}
run: docker build ./web/chatapp/ --file ./web/chatapp/Dockerfile
# ...
- name: Push image to GitHub Container Registry
id: push-images-container-registry
run:
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
if: always()
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request