Skip to content

[Output variable] List of specific file changes #68

@LangLangBart

Description

@LangLangBart

description

  • the README states to open a new issue for more Output Variables
  • could you provide a variable to see what kind of files have been changed

use case

  • I would like to check if the list of new commits includes '.cpp' files
# example with a made up variable called 'file_changes_include'
    - name: New commits found and it includes '.cpp' changes
      if: |
        (steps.sync.outputs.has_new_commits == 'true' &&
        steps.sync.outputs.file_changes_include == '*cpp*')
      run: |
        echo "New commits were found to sync."
        make

PS: The action works very well, a good job of you to make it available to the public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions