Skip to content

Commit

Permalink
Labels synchronization in all Maven repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jan 3, 2025
1 parent 1504ce8 commit 0c6c4cc
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/labels-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,31 @@ on:
required: true

jobs:
repos:
name: Prepare repositories list
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.repo.outputs.matrix }}

steps:
- id: repo
run: |
{
echo 'matrix<<EOF'
curl -s https://gitbox.apache.org/repositories.json | jq '.projects.maven.repositories | to_entries | sort_by(.key) | .[] | select(.value.description | contains("archived") | not) | .key' | jq -sc
echo 'EOF'
} >> "$GITHUB_OUTPUT"
cat "$GITHUB_OUTPUT"
label-sync:
runs-on: ubuntu-latest
needs: repos
strategy:
fail-fast: false
max-parallel: 20
max-parallel: 10
matrix:
repo:
- maven-changes-plugin
- maven-gh-actions-shared
repo: ${{ fromJSON( needs.repos.outputs.matrix ) }}

steps:
- name: Mask GitHub token
Expand Down

0 comments on commit 0c6c4cc

Please sign in to comment.