You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.0id: changedwith:
target: my-targetflags: --recursive
- name: Run my-targetif: 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