GithubHelp home page GithubHelp logo

actions-changed-files's Introduction

DEPRECATED

This action is deprecated. For a suitable replacement, try tj-actions/changed-files

Changed Files

Determine which files have changed since the last workflow run.

Usage

steps:
  - uses: actions/checkout@v2
    with:
      # Be sure to set the fetch-depth to 0 to allow arbitrary analysis of previous commits
      fetch-depth: 0

  # Be sure to set an ID on the step that invokes the action. We need this later to access outputs!
  - id: changed
    uses: colpal/actions-changed-files@v3

  - run: echo '${{ steps.changed.outputs.all }}'
    # Access all changed files as a plain text list. For example:
    #   src/index.js
    #   README.md

  - run: echo '${{ steps.changed.outputs.modified }}'
    # Access the modified files as a plain text list. For example:

  - run: echo '${{ steps.changed.outputs.added }}'
    # Access the added files as a plain text list. For example:
    #   README.md

  - run: echo '${{ steps.changed.outputs.deleted }}'
    # Access the deleted files as a plain text list. For example:
    #   src/index.js

  - run: echo '${{ steps.changed.outputs.renamed }}'
    # Access the renamed files as a plain text list. For example:
    #   dist/main.js

  - run: echo '${{ steps.changed.outputs.json }}'
    # Access the changed files as a JSON string with added, modified, deleted, renamed, and all keys
    #   {
    #     "all": ["src/index.js", "README.md", "dist/main.js"],
    #     "renamed": ["dist/main.js"],
    #     "modified": [],
    #     "added": ["README.md"],
    #     "deleted": ["src/index.js"]
    #   }

Required Permissions

  • contents:read
  • pull-requests:read

actions-changed-files's People

Contributors

dependabot[bot] avatar matttattoli avatar nafarlee avatar

Watchers

 avatar  avatar

actions-changed-files's Issues

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.