Skip to content

Add ability to apply shared configs from another repo#141

Closed
narwold wants to merge 2 commits intoactions:mainfrom
beamtech:add-shared-configs
Closed

Add ability to apply shared configs from another repo#141
narwold wants to merge 2 commits intoactions:mainfrom
beamtech:add-shared-configs

Conversation

@narwold
Copy link

@narwold narwold commented May 7, 2021

We had a use case where we wanted to apply the same label configs to multiple repos so that we could have some cross-cutting concerns across our repos. We stored these configs in our .github repo, but we needed a way to apply them without copy-pasting to all our other repos. This PR adds the ability to apply a shared-configurations option like this:

name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@main
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"
        shared-configurations: '["my-org/my-repo/some-path/shared-preset.yml@branchname", "my-org/my-repo/some-path/another-preset.yml@branchname"]'

@narwold narwold force-pushed the add-shared-configs branch from 8654499 to 0077fb0 Compare May 7, 2021 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant