Skip to content

Commit

Permalink
add missing reusable workflow output to get-changed-files
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasmhughes committed Dec 29, 2023
1 parent ba30e9c commit 374d396
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
name: Get Changed Files
uses: salt-extensions/central-artifacts/.github/workflows/get-changed-files.yml@main

changed-files-debug:
steps:
- name: Echo Changed Files Output
run: echo "${{ toJSON(needs.get-changed-files.outputs.changed-files) }}"

pre-commit:
name: Pre-Commit
uses: salt-extensions/central-artifacts/.github/workflows/pre-commit-action.yml@main
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/get-changed-files.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on:
workflow_call
workflow_call:
outputs:
changed-files:
description: "Changed file JSON output from dorny/paths-filter"
value: ${{ jobs.get-changed-files.outputs.changed-files }}

jobs:
get-changed-files:
Expand Down Expand Up @@ -27,8 +31,5 @@ jobs:
- deleted:
- '**'
- name: Echo GitHub Ref
run: echo "${{ github.ref }} ${{ github.ref_name }}"

- name: Echo Changed Files Output
run: echo "${{ toJSON(steps.changed-files.outputs) }}"

0 comments on commit 374d396

Please sign in to comment.