EddieHubCommunity / template

Template repo with docs and GitHub Actions etc
MIT License
9 stars 11 forks source link

idea: issue creator action if workflow fails #2

Open RemcoHalman opened 3 years ago

RemcoHalman commented 3 years ago

In github actions there is the possibility to run a action if the run fails

Github action <- creates issue with labels and assignee

- uses: nashmaniac/create-issue-action@v1.1
  if: ${{ failure() }} # only run when this job is failed.
  name: Create Issue Action
  with:
    title: Linter Failed
    token: ${{secrets.GITHUB_TOKEN}}
    assignees: ${{github.actor}}
    labels: refactoring-needed, help needed
    body: Workflow failed for commit ${{github.sha}}
github-actions[bot] commented 3 years ago

It's great having you contribute to this project

Feel free to raise an Issue! Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.

eddiejaoude commented 3 years ago

Oh I like it @RemcoHalman 👍 - such a great idea 🤓