Code Monkey home page Code Monkey logo

actions-slack's People

Contributors

dependabot[bot] avatar innocarpe avatar systho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actions-slack's Issues

The github actions for this repo are failing

There is a misconfiguration in the github actions on this repo, and as a result the actions are failing.

It would be nice if that was fixed so we could look to this repo as an example of how to configure our own actions.

Ability to specify channel

Hey Innocarpe!

This action is definitely one of my favorites when it comes to slack notifications, but I feel that it is lacking in one key area: the ability to specify a slack channel. Many other actions that simply use a webhook allow for this customization.

While I do not know typescript and do not want to offend you with a lousy PR, I was looking around and I think that something like this might work:

this.webhook = new IncomingWebhook(process.env.SLACK_WEBHOOK_URL, {
      channel: 'process.env.SLACK_CHANNEL',
    })

Thanks in advance!

Issue with "status" not recognized by GH actions

We're using this action on our deploys and I just noticed the following warning within the github action UI:

Check warning on line 1 in .github

@github-actions
github-actions
/ Deploy to Aptible staging

.github#L1
Unexpected input(s) 'status', valid inputs are ['success_text', 'failure_text', 'cancelled_text']

Here's how we've set up the action:

      - name: Announce on Slack
        if: ${{ always() }}
        uses: innocarpe/actions-slack@v1
        with:
          status: ${{ job.status }}
          success_text: 'Deploy to Aptible staging succeeded :smile:'
          failure_text: 'Deploy to Aptible staging failed :frowning:'

Although the line it's warning about is wrong, it does appear that the warning is coming from this package. Any idea why it's not recognizing the status key? To be clear, the Slack notifications are otherwise working as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.