mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-31 11:49:14 +01:00
Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: Update integration list
|
|
|
|
on:
|
|
workflow_dispatch: { }
|
|
push:
|
|
paths:
|
|
- packages/definitions/src/integration.ts
|
|
branches:
|
|
- dev
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
update-readme:
|
|
concurrency:
|
|
group: update-integration
|
|
cancel-in-progress: false
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Obtain token
|
|
id: obtainToken
|
|
uses: tibdex/github-app-token@v2
|
|
with:
|
|
private_key: ${{ secrets.HOMARR_UPDATE_CONTRIBUTORS_PRIVATE_KEY }}
|
|
app_id: ${{ vars.HOMARR_UPDATE_CONTRIBUTORS_APP_ID }}
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
|
- name: Setup
|
|
uses: ./tooling/github/setup
|
|
- run: pnpm run scripts:update-readme-integrations
|
|
- name: Commit changes
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
|
run: |
|
|
git config --global user.email "210161987+homarr-update-contributors[bot]@users.noreply.github.com"
|
|
git config --global user.name "Homarr Update Contributors"
|
|
git add .
|
|
git commit -m "chore: update integrations list readme"
|
|
|
|
- name: Create Pull Request
|
|
id: create-pull-request
|
|
uses: peter-evans/create-pull-request@v7
|
|
with:
|
|
token: ${{ steps.obtainToken.outputs.token }}
|
|
branch: update-integrations-readme
|
|
base: dev
|
|
title: "chore: update integrations list readme"
|
|
delete-branch: true
|
|
body: |
|
|
This PR automatically updates the list of integrations of Homarr in the README.md
|
|
|
|
- name: Install GitHub CLI
|
|
run: sudo apt-get install -y gh
|
|
|
|
- name: Enable auto-merge
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.obtainToken.outputs.token }}
|
|
run: |
|
|
gh pr merge ${{steps.create-pull-request.outputs.pull-request-number}} --auto --squash |