1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

ci: maybe fixup winget pr submission when tagging a release

This commit is contained in:
Wez Furlong 2022-08-07 09:38:23 -07:00
parent e2bf468393
commit 56aa71331e
3 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,9 @@ jobs:
path: "winget-pkgs"
token: "${{ secrets.GH_PAT }}"
- name: "Create winget manifest and push to fork"
env:
GIT_AUTHOR_EMAIL: wez@wezfurlong.org
GIT_AUTHOR_NAME: Wez Furlong
shell: bash
run: "bash ci/make-winget-pr.sh winget-pkgs WezTerm-*.exe"
- name: "Submit PR"

View File

@ -572,6 +572,10 @@ cargo build --all --release""",
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": "wez@wezfurlong.org",
},
),
RunStep(
"Submit PR",

View File

@ -10,7 +10,7 @@ cd "$winget_repo" || exit 1
# First sync repo with upstream
git remote add upstream https://github.com/microsoft/winget-pkgs.git || true
git fetch upstream master --quiet
git co -b "$TAG_NAME" upstream/master
git checkout -b "$TAG_NAME" upstream/master
exehash=$(sha256sum -b ../$setup_exe | cut -f1 -d' ' | tr a-f A-F)