Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control changes in nested subfolders

Supposedly you have a following folder structure:

  • 1
    • 1_1
      • 1_1_1
      • 1_1_2
    • 1_2
      • 1_2_1
      • 1_2_2

This action allows modifications only in 1 nested subfolder (e.g. 1_1 or 1_1_1). This action works on pull requests.

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
changed-files string true List of modified files (e.g. "1/1_1/file.txt 1/1_2/file.txt").
nesting number false 0 Depth level of subfolder (e.g. nesting = 1 -> check 1_1, 1_2; nesting = 2 -> check 1_1_1, 1_1_2, 1_2_1, 1_2_2).

Usage example

on:
  pull_request:
    branches:
    - master

jobs:
  control-changed-files:
    name: control changed files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Get changed files
        id: changed-files
        uses: tj-actions/changed-files@v14.6

      - name: Check changed files
        uses: veceluxa/action-control-changes@v1.2
        with:
          changed-files: ${{steps.changed-files.outputs.all_modified_files}}
          nesting: 1

About

This GitHub Action allows modifications only in 1 nested subfolder. It works on pull requests.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages