|
41 | 41 | value: ${{ jobs.get-matrix.outputs.matrix-s3 }} |
42 | 42 | matrix-sftp: |
43 | 43 | value: ${{ jobs.get-matrix.outputs.matrix-sftp }} |
| 44 | + matrix-samba: |
| 45 | + value: ${{ jobs.get-matrix.outputs.matrix-samba }} |
44 | 46 | matrix-webdav: |
45 | 47 | value: ${{ jobs.get-matrix.outputs.matrix-webdav }} |
46 | 48 |
|
|
69 | 71 | matrix-hdfs: ${{ toJson(fromJson(steps.matrix-hdfs.outputs.result)[steps.key-hdfs.outputs.key]) }} |
70 | 72 | matrix-s3: ${{ toJson(fromJson(steps.matrix-s3.outputs.result)[steps.key-s3.outputs.key]) }} |
71 | 73 | matrix-sftp: ${{ toJson(fromJson(steps.matrix-sftp.outputs.result)[steps.key-sftp.outputs.key]) }} |
| 74 | + matrix-samba: ${{ toJson(fromJson(steps.matrix-samba.outputs.result)[steps.key-samba.outputs.key]) }} |
72 | 75 | matrix-webdav: ${{ toJson(fromJson(steps.matrix-webdav.outputs.result)[steps.key-webdav.outputs.key]) }} |
73 | 76 | steps: |
74 | 77 | - name: Checkout code |
@@ -635,6 +638,36 @@ jobs: |
635 | 638 | with: |
636 | 639 | cmd: yq -o=json '.matrix' .github/workflows/data/sftp/matrix.yml |
637 | 640 |
|
| 641 | + - name: Check if Samba files are changed |
| 642 | + id: changed-samba |
| 643 | + uses: tj-actions/changed-files@v35 |
| 644 | + with: |
| 645 | + files_from_source_file: .github/workflows/data/samba/tracked.txt |
| 646 | + files_ignore_from_source_file: .github/workflows/data/samba/ignored.txt |
| 647 | + |
| 648 | + - name: Print Samba files changed |
| 649 | + run: | |
| 650 | + echo '${{ steps.changed-samba.outputs.all_changed_files }}' |
| 651 | +
|
| 652 | + - name: Calculate Samba matrix key |
| 653 | + id: key-samba |
| 654 | + run: | |
| 655 | + if ${{ inputs.nightly }}; then |
| 656 | + key=nightly |
| 657 | + elif ${{ steps.changed-base.outputs.any_changed }} || ${{ steps.changed-file.outputs.any_changed }} || ${{ steps.changed-samba.outputs.any_changed }}; then |
| 658 | + key=full |
| 659 | + else |
| 660 | + key=small |
| 661 | + fi |
| 662 | + echo key=$key |
| 663 | + echo key=$key >> $GITHUB_OUTPUT |
| 664 | +
|
| 665 | + - name: Get Samba matrix |
| 666 | + id: matrix-samba |
| 667 | + uses: mikefarah/yq@v4.33.3 |
| 668 | + with: |
| 669 | + cmd: yq -o=json '.matrix' .github/workflows/data/samba/matrix.yml |
| 670 | + |
638 | 671 | - name: Check if WebDAV files are changed |
639 | 672 | id: changed-webdav |
640 | 673 | uses: tj-actions/changed-files@v35 |
|
0 commit comments