Giter Club home page Giter Club logo

action-dependabot-bump-range's Introduction

action-dependabot-bump-range

Evaluates the bump range (minor, major, patch) and outputs the metadata

Inputs

token

Required Github Api Token "World".

Outputs

error

the action will not end with bad exit if title could not be parsed the error will be outputted here instead. so it can be checked

from

the version string of the current version (in default branch) of the bumped package

to

the version string of the new version (in pr branch) of the bumped package

diff

Will be one of follwing values:

"major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease"

Example usage

name: "Label Dependabot PR"

on:
  pull_request:
    types:
      - labeled
      - unlabeled
      - synchronize
      - opened
      - edited
      - ready_for_review
      - reopened
      - unlocked

jobs:
  labels:
    runs-on: ubuntu-latest
    steps:
      - uses: jurijzahn8019/[email protected]
        id: checker
        env:
          # Remove this if do not want debug output
          DEBUG: "action-dependabot-bump-range*"
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

        # Execute additional steps conditionally
      - name: Add Pull Request Label for approval
        uses: actions-ecosystem/action-add-labels@v1

        # Perform conditionals here
        if: steps.checker.outputs.diff != 'major'

        with:
          # PAT used here to trigger automerge actions
          # Use GITHUB_TOKEN if not need to trigger events
          github_token: ${{ secrets.TOKEN_GITHUB }}
          labels: "pull: automerge"

Test run

DEBUG=* \
  INPUT_TOKEN=FOOOOO \
  node dist/index.cjs.js

action-dependabot-bump-range's People

Contributors

dependabot[bot] avatar actions-user avatar jurijzahn8019 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  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.