mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
chore: publish to the Windows Store every week
This commit is contained in:
parent
a4e8bc1b60
commit
f3547c8d2a
12
.github/workflows/inno.yml
vendored
12
.github/workflows/inno.yml
vendored
|
@ -64,4 +64,16 @@ jobs:
|
||||||
ref: 'main',
|
ref: 'main',
|
||||||
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')}
|
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')}
|
||||||
})
|
})
|
||||||
|
- name: Notify App Store Build 👋
|
||||||
|
uses: actions/github-script@v5
|
||||||
|
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', '')}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,18 @@
|
||||||
name: Submit Oh My Posh to the Windows Store
|
name: Submit Oh My Posh to the Windows Store
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'The version to publish'
|
description: 'The latest version'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
microsoft_store:
|
microsoft_store:
|
||||||
name: Publish Microsoft Store
|
name: Publish Microsoft Store
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Configure Store Credentials 🔑
|
- name: Configure Store Credentials 🔑
|
||||||
uses: microsoft/store-submission@v1
|
uses: jandedobbeleer/store-submission@submission-status
|
||||||
with:
|
with:
|
||||||
command: configure
|
command: configure
|
||||||
type: win32
|
type: win32
|
||||||
|
@ -23,9 +21,9 @@ jobs:
|
||||||
tenant-id: ${{ secrets.TENANT_ID }}
|
tenant-id: ${{ secrets.TENANT_ID }}
|
||||||
client-id: ${{ secrets.CLIENT_ID }}
|
client-id: ${{ secrets.CLIENT_ID }}
|
||||||
client-secret: ${{ secrets.CLIENT_SECRET }}
|
client-secret: ${{ secrets.CLIENT_SECRET }}
|
||||||
|
only-on-ready: true
|
||||||
- name: Update draft submission
|
- name: Update draft submission
|
||||||
uses: microsoft/store-submission@v1
|
uses: jandedobbeleer/store-submission@submission-status
|
||||||
with:
|
with:
|
||||||
command: update
|
command: update
|
||||||
product-update: '{
|
product-update: '{
|
||||||
|
@ -39,8 +37,7 @@ jobs:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}'
|
}'
|
||||||
|
|
||||||
- name: Publish Submission
|
- name: Publish Submission
|
||||||
uses: microsoft/store-submission@v1
|
uses: jandedobbeleer/store-submission@submission-status
|
||||||
with:
|
with:
|
||||||
command: publish
|
command: publish
|
Loading…
Reference in a new issue