Skip to content

Merge pull request #18 from fieldtrip/branch2 #15

Merge pull request #18 from fieldtrip/branch2

Merge pull request #18 from fieldtrip/branch2 #15

Workflow file for this run

# 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