Coder Social home page Coder Social logo

dependabot-deploy-public-action's Introduction

Dependabot Minor Updates Deploy GitHub action - IN TESTING

Forked from the Github Action created by our wonderful Prague colleagues.

A GitHub Action which allows to deploy Pipedrive services. Needs developer approval and reconciles previous updates before adding ready-for-deploy label.

Usage

Create an yml file into .github/workflows/<WORKFLOW_NAME>.yml and merge into into your default branch (usually master). This action needs to contain the checkout action. This action uses it to verify if the package which is being updated is in dev/prod dependencies.

on: [status]

jobs:
  deploy:
    runs-on: ubuntu-latest
    name: Dependabot auto deploy dependencies
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Deploy
        uses: pipedrive/dependabot-deploy-minor-changes@master
        with:
          gitHubToken: ${{ secrets.GITHUB_TOKEN }}

Inputs

gitHubToken (required)

GitHub token for current action.

maxDeployVersion

The maximum difference in version which should be auto-deployed. Allowed values PATCH, MINOR, MAJOR. Defaults to MAJOR.

deployOnlyInWorkingHours

If true then deploy will be skipped if the PR is created outside of working hours". Default true. Working hours are defined as Monday-Friday 07:00 - 16:59

timezone

Timezone defined https://momentjs.com/timezone/ used to verify if the current time is within the working hours. Default Europe/Prague

deployDependencies

Defines what dependencies should be deployed. Either dev or all. Default dev

updateIndirectDependencies

Defines whether to deploy indirect dependencies (dependencies of dependencies). Either true or false. Default false

Development

To install all dependencies run:

npm install

The package is built into single dist/index.js file which is part of the repository. It needs to be created manually before the commit by running:

# Run all tests and creates the build
npm run publish

dependabot-deploy-public-action's People

Contributors

voda avatar dependabot[bot] avatar mileetos avatar

Watchers

 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.