Giter Club home page Giter Club logo

github-action-notify-release's Introduction

github-action-notify-release

Usage

Configure this action in your workflows providing the inputs described below in order to get notified in x days after teh repo has been updated but no npm release has happened.

github-token

Required A GitHub token. See below for additional information.

days-to-ignore: 0

Optional The number of days after which unreleased commits should be considered stale and should notify for a release. Default is 7.

Notes

  • Checks and compares npm last modified date and git latest repo update.
  • If the repo doesn't have an npm package linked the run will exit with a warning log.
  • A GitHub token is automatically provided by Github Actions, which can be accessed using secrets.GITHUB_TOKEN and supplied to the action as an input github-token.
  • The example below sets a scheduled job to happen once a day that checks for a stale release. Adjust to the desired frequency.

Example

name: notify-pending-release
on:
  workflow_dispatch:
    branches:
      - main
  schedule:
    - cron: '30 8 * * *'
jobs:
  setup:
    runs-on: ubuntu-latest
    steps:
      - name: Notify pending release
        id: notify
        uses: nearform/github-action-notify-release@main
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          days-to-ignore: 7

github-action-notify-release's People

Contributors

estherixz avatar sameer-coder avatar

Stargazers

 avatar

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.