-
Notifications
You must be signed in to change notification settings - Fork 52
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
Configure using the with
parameter
#11
Comments
Maybe you could make an example, i'm not sure if I understand what u mean |
name: PR Labeler
on:
pull_request:
types: [opened]
jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@master
with:
feature: ['feature/*', 'feat/*']
fix: fix/*
chore: chore/*
fixed-branch: fixed-branch-name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} In the above example each parameter provided to the |
I see what u mean. I like the idea but would keep the option to have a separated config file like we at the moment. So making both a choice and not limiting to one case. |
Agreed, we'll keep that.
Good idea, feel free to file an issue. |
|
++ to this optional config @TimonVS . The main value add is i would be able to use this within a workflow that is re-usable. Re-useable workflows do not support pulling in additional files outside of the called/referenced workflow at the moment, in this case the external config file. |
@tophercf I may be misunderstanding, but would it work if you add |
Configuration should be done using the
with
parameter instead of having to create a separate YAML file. We can still keep support for the YAML file as not to cause breaking changes for people who use themaster
version of this Action, or we could create a ticket in the repo to give users a heads up.The text was updated successfully, but these errors were encountered: