Skip to content

Commit

Permalink
add and fix workflows for local manifest update
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Nov 13, 2024
1 parent 010f3ad commit 2c765c6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-winget-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}
ref: main
- name: Publish winget manifest
run: .\winget\Publish.ps1 -Channel Canary -Version Latest -Output .\winget\ -Submit ${{ secrets.WINGET_TOKEN }}
- name: Update winget manifest
run: |
git config user.name "Johnny Shaw"
git config user.email [email protected]
git checkout main
git add .
git commit -m "update winget manifest"
git push
25 changes: 25 additions & 0 deletions .github/workflows/update-winget-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update winget canary manifest

on:
workflow_dispatch:
release:
types: [published]

jobs:
winget:
name: Publish winget package
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_TOKEN }}
ref: main
- name: Publish winget manifest
run: .\winget\Publish.ps1 -Channel Canary -Version Latest -Output .\winget\
- name: Update winget manifest
run: |
git config user.name "Johnny Shaw"
git config user.email [email protected]
git add .
git commit -m "update winget manifest"
git push

0 comments on commit 2c765c6

Please sign in to comment.