Giter Club home page Giter Club logo

actions-go-modified's Introduction

Check modified files

Retrieve modified files between 2 commits in github actions for use in later step inputs.

Usage:

my-job:
  strategy:
    matrix:
      prefix:
      - pkg
      - src
  steps:
  - uses: actions-go/modified@master
    id: is-modified
    with:
      pattern: ${{ matrix.prefix }}/**/*.go
  - run: echo "${{ steps.is-modified.outputs.modified }} ${{ steps.is-modified.outputs.modified-files }}"
    if: steps.is-modified.outputs.modified == 'true'

Inputs

head

The commit to be compared to base. This parameter is required when running on an event different from push or pullrequest. When handling a pullrequest event, it defaults to the pullrequest head sha. When handling a push event, it defauts to the After field of the push event: https://developer.github.com/v3/activity/events/types/#pushevent

base

The commit head is compared to. This parameter is required when running on an event different from push or pullrequest. When handling a pullrequest event, it defaults to the pullrequest base sha. When handling a push event, it defauts to the Before field of the push event: https://developer.github.com/v3/activity/events/types/#pushevent

pattern

The pattern to which modified paths are matched.

use-glob

Whether to use the simplee glob syntax, extended with the ** pattern matching paths with path separator

Outputs

modified

true when any modified file between base and head matches pattern

modified-files

a json encoded list of all files modified between base and head

actions-go-modified's People

Contributors

dependabot[bot] avatar tjamet 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.