An open API service indexing awesome lists of open source software.

https://github.com/foodee/pr-includes-file-change

Simple action to determine if a PR contains a file change
https://github.com/foodee/pr-includes-file-change

Last synced: 11 months ago
JSON representation

Simple action to determine if a PR contains a file change

Awesome Lists containing this project

README

          

# GitHub Action: Detect PR file changes
Detects whether or not a file in a provided path has been changed.

Useful for preventing steps in workflows, can provide multiple paths as regular expressions

## Example Usage

```yaml

name: Test Workflow

on: [pull_request]

jobs:

test:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: Get Changed Files
id: changed
uses: foodee/pr-includes-file-change@master
with:
paths: ^asdf.js ^main.js

- name: Echo Match
if: steps.changed.outputs.matched == 'true'
run: echo Matched

```