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

Allow more than just a push event to run the action #632

Merged
merged 2 commits into from
Dec 27, 2020

Conversation

MindaugasLaganeckas
Copy link
Contributor

We would like to propose a change, where it is the github action determines, when a release-drafter should be run.
We have a usecase, where it is a workflow dispatch event, that triggers the action and this line: app.on('push', async (context) => { prevents the action to run.

Maybe there is a better way to solve this problem rather than replacing push with *. Your input is welcome.

@MindaugasLaganeckas MindaugasLaganeckas marked this pull request as ready for review August 27, 2020 08:14
@jetersen
Copy link
Member

Thanks for your contribution. I know this is an simply change. But this would affect the github app application as well.

It would be much preferred to wait for #549

@MindaugasLaganeckas
Copy link
Contributor Author

No problem! Take your time! 😄

@jetersen
Copy link
Member

I have an extended weekend coming up, so hopefully soon(tm)

rouge8 added a commit to GoodRx/release-drafter that referenced this pull request Aug 28, 2020
Previously release-drafter would only run on push events which is why
our attempt to use it in a cron job for Gold were not doing anything.

ref: release-drafter#612
ref: release-drafter#632
ref: release-drafter#549
@jetersen
Copy link
Member

jetersen commented Dec 26, 2020

don't mind me, just testing something.

/rebase

fair enough, however the trigger works! https://github.com/release-drafter/release-drafter/runs/1611840422?check_suite_focus=true

! [remote rejected] patch-1 -> patch-1 (refusing to allow a GitHub App to create or update workflow `.github/workflows/lint.yml` without `workflows` permission)

@jetersen
Copy link
Member

👋 @MindaugasLaganeckas I chose to make this conditional to support both use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants