Merge pull request #18 from fieldtrip/branch2 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://github.com/marketplace/actions/changed-files | |
name: Changed files | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
changed_files: | |
runs-on: ubuntu-latest # windows-latest || macos-latest | |
name: Changed files | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get all changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v38 | |
- name: Dump Changed files context | |
env: | |
CHANGED_CONTEXT: ${{ toJson(steps.changed-files) }} | |
run: | | |
echo "$CHANGED_CONTEXT" | |
- name: Show all changed files | |
run: | | |
echo "the following files were changed: ${{ steps.changed-files.outputs.all_changed_files }}" | |
- name: List all changed files | |
run: | | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
echo "$file was changed" | |
done | |