Skip to content

Run GitHub Action with Conditions #25421

Answered by kingthorin
vybhav72954 asked this question in Actions
Discussion options

You must be logged in to vote

You could use an action like futuratrepadeira/changed-files to get the changed files.

You can then gather added or updated files for other steps, such as:

env:
        FILES: '${{ steps.files.outputs.files_updated }} ${{ steps.files.outputs.files_created }}'

Here’s a workflow that does link checks in added/changed markdown files that you could use as a model for your ointing requirements: https://github.com/OWASP/wstg/blob/559a2794ae26adaf9dc7187b3ae60ab161e1ca17/.github/workflows/md-link-check.yml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants