Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-prerequisites-changed

A GitHub Action that checks whether any prerequisite of a Makefile target changed since a given base commit. Combines colluca/list-make-prerequisites with tj-actions/changed-files to gate a job on whether its actual Make dependencies changed, instead of a hand-maintained list of glob patterns.

Usage

- uses: colluca/make-prerequisites-changed@v1.1.0
  id: changed
  with:
    target: my-target
    flags: --recursive
- name: Run my-target
  if: steps.changed.outputs.changed == 'true'
  run: make my-target

Inputs

Name Description Required Default
target Target to check prerequisites for yes
working-directory Working directory to run Make in no .
flags Additional flags to pass to list-make-prerequisites no ''
base_sha Base SHA to diff against (passed through to tj-actions/changed-files) no ''
pymakeutils-version Version of the pymakeutils PyPI package to install (passed through to list-make-prerequisites) no latest

Outputs

Name Description
changed 'true' if any prerequisite changed since base_sha, 'false' otherwise

About

GitHub Action to check whether a Makefile target's prerequisites changed

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages