-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add dev deploy workflow #17
Conversation
@manorit2001 Can you please check why deploy isn't triggering deployment event. |
Ah, I just checked. It seems that the project is not that maintained anymore Test and staging environment are abandoned as per this which is causing the issues ig. Let's try to find some other similar project then |
and if not found, we can resort to this ig |
This also seems promising, https://github.com/marketplace/actions/pull-request-comment-trigger, we can perhaps trigger deployment using comment triggers with this. |
If we can change settings so that only collaborators can trigger it, then it seems good |
deploy |
1 similar comment
deploy |
@parth-07 it works! |
@manorit2001 yayy :) |
things are being deployed even if we comment in issue, prevent that |
it seems like i can't write the work dep-loyed anymore 😂 |
@github deploy |
@manorit2001 Yes, |
deployed again 😂 |
and try to prevent running of workflow from issues altogether if possible |
@manorit2001 Ideally, it should just match if command is present at start of the comment. But alas, it checks the entire comment body. |
@github don't deploy just a check xD EDIT: ah, atleast it doesn't match things like a subsequence, that's a plus |
This seems more difficult, |
Yeah seriously, that would be a nighmare xD |
src: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#issue_comment
|
Workflow will still be triggered in these cases, right ? Job will be skipped though. |
Ah, makes sense, but the authentication job is still being run, we can skip that also when running things on issue |
Yes agreed, that step should be skipped. |
@github deploy |
@github deploy |
eca5c9f
to
bb8bdd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, The deployment works fine but I can see some warnings in Github Actions. I know they won't matter much as deployment works fine but I would at least like you to look into it once if you can fix them
Those warnings cannot be removed, they are due to using |
Ah, seems right, cool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds github workflow for automatic deployment to development server on encountering trigger command in the PR comments.
Trigger command:
@github deploy
Github action bot will give rocket reaction to the comment on encountering trigger command, and then if the command is given by a valid user, initiates deployment
Closes #12