ci(workflows): minor fixes and updates (#3581)

This commit is contained in:
ReenigneArcher 2025-04-20 10:25:33 -04:00 committed by GitHub
commit e58a437e6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 84 additions and 28 deletions

View file

@ -9,7 +9,8 @@ name: Update flathub repo
on:
release:
types: [released]
types:
- released
concurrency:
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
@ -114,7 +115,7 @@ jobs:
out-file-path: "flathub/${{ env.FLATHUB_PKG }}"
extract: true
- name: Delete arhive
- name: Delete archive
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true'
@ -172,6 +173,7 @@ jobs:
git checkout $main_commit
- name: Create/Update Pull Request
id: create-pr
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true' &&
@ -185,3 +187,20 @@ jobs:
delete-branch: true
title: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}"
body: ${{ github.event.release.body }}
- name: Automerge PR
env:
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
if: >-
steps.check-label.outputs.hasTopic == 'true' &&
steps.check-release.outputs.isLatestRelease == 'true' &&
fromJson(steps.download.outputs.downloaded_files)[0]
run: |
gh \
pr \
merge \
--auto \
--delete-branch \
--repo "flathub/${{ env.FLATHUB_PKG }}" \
--squash \
"${{ steps.create-pr.outputs.pull-request-number }}"