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

/github deploy [repo] - task doesn't work #968

Closed
rntdrts opened this issue Dec 2, 2019 · 2 comments
Closed

/github deploy [repo] - task doesn't work #968

rntdrts opened this issue Dec 2, 2019 · 2 comments

Comments

@rntdrts
Copy link

rntdrts commented Dec 2, 2019

I have been using this integration and I want to thank you all for the great job you have done here! 👏

I have been migrating some repositories into a monorepo. I'm using github actions to deploy each project. However, I thought I could separate each deploy by using the input task which is not working.

Screenshot 2019-12-02 at 15 52 06

Is that even possible or am I not understanding properly what is the task input attribute related to?

Once again, Thanks!

@welcome
Copy link

welcome bot commented Dec 2, 2019

Thanks for opening this issue! If you would like to help implement an improvement, read more about contributing and consider submitting a pull request.

@rntdrts
Copy link
Author

rntdrts commented Dec 2, 2019

After looking at the base code and dig up into github actions I was able to find the solution.
In case anyone has the same problem, you can filter your jobs/steps by adding an if, like this:

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    if: github.event.deployment.task == 'name_of_task'

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

No branches or pull requests

1 participant