From fc1fb2b582f5e701390f9f6200dddd7425a3cc70 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Wed, 29 Nov 2023 17:03:50 -0700 Subject: [PATCH] test: verify bug writing outputs when files_yaml is used (#1762) --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d58eb76e7c..e6c99a47836 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -643,6 +643,29 @@ jobs: shell: bash + - name: Run changed-files with files_yaml, json and write_output_files + id: changed-files-json-write-output-files + uses: ./ + with: + files_yaml: | + test: + - .github/workflows/test.yml + json: true + write_output_files: true + + - name: Show all outputs + run: | + echo "${{ toJSON(steps.changed-files-json-write-output-files.outputs) }}" + shell: + bash + + - name: Show all_changed_files output and list .github/outputs + run: | + echo '${{ toJSON(steps.changed-files-json-write-output-files.outputs.test_all_changed_files) }}' + cat .github/outputs/test_all_changed_files.json + shell: + bash + test-recover-deleted-file: name: Test changed-files recover deleted file runs-on: ubuntu-latest