mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
chore(msi): use matrix for notify
This commit is contained in:
parent
f9c0e25556
commit
47f7383f96
32
.github/workflows/msi.yml
vendored
32
.github/workflows/msi.yml
vendored
|
@ -56,8 +56,11 @@ jobs:
|
||||||
notify:
|
notify:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: package
|
needs: package
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
workflow: [winget, microsoft_store, scoop]
|
||||||
steps:
|
steps:
|
||||||
- name: Notify Winget Build 🙋🏾♀️
|
- name: Notify 🙋🏾♀️
|
||||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_PAT }}
|
github-token: ${{ secrets.GH_PAT }}
|
||||||
|
@ -65,32 +68,7 @@ jobs:
|
||||||
await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
|
await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
|
||||||
owner: 'jandedobbeleer',
|
owner: 'jandedobbeleer',
|
||||||
repo: '${{ github.event.repository.name }}',
|
repo: '${{ github.event.repository.name }}',
|
||||||
workflow_id: 'winget.yml',
|
workflow_id: '${{ matrix.workflow }}.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',
|
|
||||||
ref: 'main',
|
ref: 'main',
|
||||||
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', ''), "release": "${{ github.event.release.id }}" }
|
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', ''), "release": "${{ github.event.release.id }}" }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue