Skip to content

Commit 701249d

Browse files
Merge pull request #8 from bytebase/a-branch-3
update the changed file logic
2 parents 317b257 + d770885 commit 701249d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/bb-masking-1.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,18 @@ jobs:
3333
files: |
3434
masking/databases/**/**/column-masking.json
3535
masking/projects/**/masking-exception.json
36+
since_last_remote_commit: true
37+
fetch_depth: 0
38+
include_all_old_new_renamed_files: true
3639

3740
- name: Debug changed files in detail
3841
run: |
3942
echo "All changed files:"
4043
echo "${{ steps.changed-files.outputs.all_changed_files }}"
44+
echo "Added files:"
45+
echo "${{ steps.changed-files.outputs.added_files }}"
46+
echo "Modified files:"
47+
echo "${{ steps.changed-files.outputs.modified_files }}"
4148
echo "Contains column-masking.json: ${{ contains(steps.changed-files.outputs.all_changed_files, 'column-masking.json') }}"
4249
echo "Contains masking-exception.json: ${{ contains(steps.changed-files.outputs.all_changed_files, 'masking-exception.json') }}"
4350
echo "Raw output:"

.github/workflows/bb-masking-2.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ jobs:
3333
files: |
3434
masking/masking-algorithm.json
3535
masking/semantic-type.json
36+
since_last_remote_commit: true
37+
fetch_depth: 0
38+
include_all_old_new_renamed_files: true
39+
40+
- name: Debug changed files
41+
run: |
42+
echo "All changed and added files:"
43+
echo "Modified files: ${{ steps.changed-files.outputs.modified_files }}"
44+
echo "Added files: ${{ steps.changed-files.outputs.added_files }}"
45+
echo "All changes: ${{ steps.changed-files.outputs.all_changed_files }}"
3646
3747
- name: Debug changed files in detail
3848
run: |

0 commit comments

Comments
 (0)