Skip to content

Commit

Permalink
Try use flatpak version external data checker to update all deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Oct 18, 2024
1 parent 01fc94d commit ec9852c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
44 changes: 32 additions & 12 deletions .github/workflows/external-data-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,43 @@ on:
jobs:
flatpak-external-data-checker:
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write
container:
image: archlinux:latest
options: --init --privileged
strategy:
matrix:
branch: [ master ] # list all branches to check
fail-fast: false

steps:
- name: Setup
run: |
pacman -Syu --needed --noconfirm flatpak git
flatpak install -y --system --from https://dl.flathub.org/repo/appstream/org.flathub.flatpak-external-data-checker.flatpakref
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}

- uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest
env:
GIT_AUTHOR_NAME: Flatpak External Data Checker
GIT_COMMITTER_NAME: Flatpak External Data Checker
# email sets "github-actions[bot]" as commit author, see https://github.community/t/github-actions-bot-email-address/17204/6
GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update
run: |
for f in org.fcitx.Fcitx5*.yaml; do
flatpak run org.flathub.flatpak-external-data-checker --update --edit-only $f
done
git diff || true
- name: Create Pull request
uses: peter-evans/create-pull-request@v7
with:
args: --update --never-fork universal.yaml
add-paths: |
*.yaml
commit-message: |
Update dependencies
- Updated ${{ github.event.repository.updated_at}}
branch: external-deps
delete-branch: true
title: 'Update dependencies'
body: |
- Updated ${{ github.event.repository.updated_at}}
20 changes: 0 additions & 20 deletions universal.yaml

This file was deleted.

0 comments on commit ec9852c

Please sign in to comment.