ci: automate making PR for flathub at release time

This commit is contained in:
Wez Furlong committed 2023-03-26 06:42:04 -07:00
1 parent 24ec8a0382
commit b99ecead8b
6 files changed
+217 -4

No files matched your search

+14
View File
@@ -125,3 +125,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"
- name: "Checkout flathub/org.wezfurlong.wezterm"
uses: actions/checkout@v3
with:
repository: "flathub/org.wezfurlong.wezterm"
path: "flathub"
token: "${{ secrets.GH_PAT }}"
- name: "Create flathub commit and push"
shell: bash
run: "bash ci/make-flathub-pr.sh"
- name: "Submit PR"
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
shell: bash
run: 'cd flathub && gh pr create --fill --body "PR automatically created by release automation in the wezterm repo"'