Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple config files #123

Open
jvalkeal opened this issue Dec 18, 2020 · 3 comments
Open

Support multiple config files #123

jvalkeal opened this issue Dec 18, 2020 · 3 comments

Comments

@jvalkeal
Copy link
Contributor

While trying to label things in multiple repos where most labels are "shared" but there's always repo specific labels it'd be nice if you could point to multiple yml files instead of just one. Action could then merge those together. If want to force all labels to come from this action I'd need to either keep single yml(and merge manually) or keep a bit crazy list of excludes.

This basically shows the annoying thing if trying to use multiple steps:

jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Shared Labels
        uses: crazy-max/ghaction-github-labeler@v3
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          yaml-file: .github/shared-labels.yml
          skip-delete: false
          dry-run: false
      - name: Project Labels
        uses: crazy-max/ghaction-github-labeler@v3
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          yaml-file: .github/project-labels.yml
          skip-delete: false
          dry-run: false

As then you just end up with project labels.

Either expand existing yaml-file to use same format as exclude or make a new config key:

with:
  yaml-file: |
    .github/labels-1.yml
    .github/labels-2.yml

I might even find some time to help on this.

@stale
Copy link

stale bot commented Jan 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@kdeldycke
Copy link

kdeldycke commented Jan 5, 2022

I managed to to this with julb/action-manage-label, but unfortunately the latter has less features than ghaction-github-labeler and has some issues (fixed in julb/action-manage-label#1).

@adiroiban
Copy link

One idea for multiple config files... since we have a simple yaml file here.

Keep your multiple files in the repo.

Before calling this action do a concatenation of the files. Then run the action with the concatenated yaml file as the source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants