notify-action
2021-06-25 16:23:48 Author: github.com(查看原文) 阅读量:72 收藏

Notify Action makes it easy to orchestrate notify with GitHub Action.

Example Usage

GitHub Action running Notify with file

      - name: 🗒 Notify - Keep me updated
        uses: projectdiscovery/notify-action@main
        with:
          data: output.txt
          config: notify-config.yaml

Example workflow - .github/workflows/notify.yml

name: 🗒 Notify - Keep me updated

on:
    schedule:
      - cron: '0 0 * * *'
    workflow_dispatch:

jobs:
  notify-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-go@v2
        with:
          go-version: 1.15

      - name: 🗒 Notify - Keep me updated
        uses: projectdiscovery/notify-action@main
        with:
          data: output.txt
          config: notify-config.yaml

Available Inputs

Key Description Required
data Input file to send with notify false
config Config file to use with notify false
flags Additional notify CLI flags to use false

文章来源: https://github.com/projectdiscovery/notify-action
如有侵权请联系:admin#unsafe.sh