Skip to content

Commit

Permalink
write changed files output to a file
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jul 16, 2024
1 parent 51c35b4 commit 059c766
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,15 @@ jobs:
DELETED_FILES: ${{ steps.changed-files.outputs.deleted_files }}
OUTPUT: ${{ toJson(steps.changed-files.outputs) }}
run: |
echo "**************"
echo $ADDED_FILES | jq .
echo "**************"
echo $MODIFIED_FILES | jq .
echo "**************"
echo $DELETED_FILES | jq .
echo "**************"
echo $OUTPUT > changed_files.txt
# - name: List changed files
# id: list_files
# run: |
# if [ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]; then
# git diff --name-only ${{ github.sha }} > changed_files.txt
# else
# git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
# fi

# cat changed_files.txt
- name: List changed files
id: list_files
run: |
cat changed_files.txt
# - name: Get the actual changes in the files
# run: |
Expand Down

0 comments on commit 059c766

Please sign in to comment.