mirror of
https://github.com/valitydev/.github.git
synced 2024-11-06 01:55:23 +00:00
use other PR action (#24)
* use other PR action * Add more parameters * Add title * Sort repo list by name * Finalyze action Co-authored-by: valitydev-bot <100378742+valitydev-bot@users.noreply.github.com>
This commit is contained in:
parent
a96693c8d2
commit
7aec19d5e7
19
.github/workflows/sync-repo-list.yml
vendored
19
.github/workflows/sync-repo-list.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
-L $repo_limit \
|
||||
$LANGUAGE_ARGS \
|
||||
--json name,owner \
|
||||
-q '.[] | [.owner.login, .name] | join("/")')
|
||||
-q '.|=sort_by(.name)| .[] | [.owner.login, .name] | join("/")')
|
||||
REPOSITORIES="${REPOSITORIES//'%'/'%25'}"
|
||||
REPOSITORIES="${REPOSITORIES//$'\n'/'%0A'}"
|
||||
REPOSITORIES="${REPOSITORIES//$'\r'/'%0D'}"
|
||||
@ -55,8 +55,15 @@ jobs:
|
||||
propertyPath: >-
|
||||
$.group[?(@.id == "${{ matrix.group }}")].repos
|
||||
value: ${{ steps.repo-list.outputs.repositories }}
|
||||
branch: update/${{ matrix.group }}
|
||||
labels: repo-updates
|
||||
message: "Update repo list for ${{ matrix.group }} group"
|
||||
targetBranch: master
|
||||
createPR: true
|
||||
updateFile: true
|
||||
commitChange: false
|
||||
|
||||
- name: 📤 Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
base: master
|
||||
branch: updates/${{ matrix.group }}
|
||||
title: "Update repo list for ${{ matrix.group }} group"
|
||||
commit-message: "Update repo list for ${{ matrix.group }} group"
|
||||
add-paths: |
|
||||
.github/sync.yml
|
||||
|
Loading…
Reference in New Issue
Block a user