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',
|
||||
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
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'The version to publish'
|
||||
description: 'The latest version'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
|
||||
microsoft_store:
|
||||
name: Publish Microsoft Store
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Configure Store Credentials 🔑
|
||||
uses: microsoft/store-submission@v1
|
||||
uses: jandedobbeleer/store-submission@submission-status
|
||||
with:
|
||||
command: configure
|
||||
type: win32
|
||||
|
@ -23,9 +21,9 @@ jobs:
|
|||
tenant-id: ${{ secrets.TENANT_ID }}
|
||||
client-id: ${{ secrets.CLIENT_ID }}
|
||||
client-secret: ${{ secrets.CLIENT_SECRET }}
|
||||
|
||||
only-on-ready: true
|
||||
- name: Update draft submission
|
||||
uses: microsoft/store-submission@v1
|
||||
uses: jandedobbeleer/store-submission@submission-status
|
||||
with:
|
||||
command: update
|
||||
product-update: '{
|
||||
|
@ -39,8 +37,7 @@ jobs:
|
|||
}
|
||||
]
|
||||
}'
|
||||
|
||||
- name: Publish Submission
|
||||
uses: microsoft/store-submission@v1
|
||||
uses: jandedobbeleer/store-submission@submission-status
|
||||
with:
|
||||
command: publish
|
Loading…
Reference in a new issue