Fork-Sync-With-Upstream-action icon indicating copy to clipboard operation
Fork-Sync-With-Upstream-action copied to clipboard

[Output variable] List of specific file changes

Open LangLangBart opened this issue 1 year ago • 1 comments

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.

LangLangBart avatar Jun 20 '23 06:06 LangLangBart