3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-24 09:25:40 +00:00
changed-files/.github/workflows/manual-triggered-job-example.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

name: Manual Triggered Job Example
permissions:
contents: read
on:
workflow_dispatch:
jobs:
test:
name: Test changed-files
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
max-parallel: 7
matrix:
2023-06-22 07:16:56 +00:00
platform: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
2023-10-03 00:09:57 +00:00
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Run changed-files with defaults
id: changed-files
uses: ./
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files.outputs) }}'
2022-06-13 04:09:49 +00:00
2022-05-23 03:57:41 +00:00
- name: Run changed-files with glob filtering
id: changed-files-glob
uses: ./
with:
files: |
test/*.txt
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-glob.outputs) }}'
- name: Run changed-files with glob filtering and all_old_new_renamed_files
id: changed-files-glob-all-old-new-renamed-files
uses: ./
with:
include_all_old_new_renamed_files: true
files: |
test/*.txt
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-glob-all-old-new-renamed-files.outputs) }}'