Skip to content

Commit

Permalink
ci: nth time's the charm for winget tag pr thing
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Aug 7, 2022
1 parent 608750d commit c2fee76
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gen_windows_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ jobs:
repository: "wez/winget-pkgs"
path: "winget-pkgs"
token: "${{ secrets.GH_PAT }}"
- name: "Setup email for winget repo"
shell: bash
run: "cd winget-pkgs && git config user.email [email protected]"
- name: "Setup name for winget repo"
shell: bash
run: "cd winget-pkgs && git config user.name 'Wez Furlong'"
- name: "Create winget manifest and push to fork"
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: Wez Furlong
shell: bash
run: "bash ci/make-winget-pr.sh winget-pkgs WezTerm-*.exe"
- name: "Submit PR"
Expand Down
12 changes: 8 additions & 4 deletions ci/generate-workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,13 +569,17 @@ def create_winget_pr(self):
"token": "${{ secrets.GH_PAT }}",
},
),
RunStep(
"Setup email for winget repo",
"cd winget-pkgs && git config user.email [email protected]",
),
RunStep(
"Setup name for winget repo",
"cd winget-pkgs && git config user.name 'Wez Furlong'",
),
RunStep(
"Create winget manifest and push to fork",
"bash ci/make-winget-pr.sh winget-pkgs WezTerm-*.exe",
env={
"GIT_AUTHOR_NAME": "Wez Furlong",
"GIT_AUTHOR_EMAIL": "[email protected]",
},
),
RunStep(
"Submit PR",
Expand Down
2 changes: 1 addition & 1 deletion ci/make-winget-pr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -x
set -xe

winget_repo=$1
setup_exe=$2
Expand Down

0 comments on commit c2fee76

Please sign in to comment.