From 47f7383f9604f50a944274ef0d314fd8d7fdc3c1 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 24 Nov 2024 19:40:47 +0100 Subject: [PATCH] chore(msi): use matrix for notify --- .github/workflows/msi.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/msi.yml b/.github/workflows/msi.yml index d0eface4..546bd582 100644 --- a/.github/workflows/msi.yml +++ b/.github/workflows/msi.yml @@ -56,8 +56,11 @@ jobs: notify: runs-on: ubuntu-latest needs: package + strategy: + matrix: + workflow: [winget, microsoft_store, scoop] steps: - - name: Notify Winget Build 🙋🏾‍♀️ + - name: Notify 🙋🏾‍♀️ uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea with: github-token: ${{ secrets.GH_PAT }} @@ -65,32 +68,7 @@ jobs: await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', { owner: 'jandedobbeleer', repo: '${{ github.event.repository.name }}', - workflow_id: 'winget.yml', - ref: 'main', - inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')} - }) - - name: Notify Windows Store Build 👋 - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea - with: - github-token: ${{ secrets.GH_PAT }} - script: | - await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', { - owner: 'jandedobbeleer', - repo: '${{ github.event.repository.name }}', - workflow_id: 'microsoft_store.yml', - ref: 'main', - inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')} - }) - - name: Notify Scoop Build 🤙 - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea - with: - github-token: ${{ secrets.GH_PAT }} - script: | - await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', { - owner: 'jandedobbeleer', - repo: '${{ github.event.repository.name }}', - workflow_id: 'scoop.yml', + workflow_id: '${{ matrix.workflow }}.yml', ref: 'main', inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', ''), "release": "${{ github.event.release.id }}" } }) -