jayqi / failed-build-issue-action

An action that makes it easy to notify of a failed GitHub Actions workflow via an issue.
MIT License
3 stars 0 forks source link

Q: Custom label #118

Closed phun-ky closed 2 months ago

phun-ky commented 2 months ago

Is it possible to add a custom label, instead of build failed when a build has failed?

jayqi commented 2 months ago

Hi @phun-ky,

I think the label-name parameter gets what you need:

https://github.com/jayqi/failed-build-issue-action/blob/9dcbb15658246bdd43e676bc66313561574ac470/action.yml#L7-L10

I'm going to close this issue because I don't think there is any to-do, but feel free to respond here with any more questions.

phun-ky commented 2 months ago

so, like so?

…
jobs:
  …
    notify:
      name: Notify failed check
      needs: check
      if: failure()
      runs-on: ubuntu-latest
      steps:
        - uses: jayqi/failed-build-issue-action@v1.2
          with:
            github-token: ${{ secrets.GH_TOKEN }}
            label-name: "new label to be used instead of default"
…
jayqi commented 2 months ago

Yes, I think that looks correct. Let me know if you run into any problems.