File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 has_new_files_to_promote : ${{ steps.changed-files.outputs.all_changed_files_count != 0 }}
3737 steps :
3838 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39+ with :
40+ fetch-depth : 0
3941
4042 # Initializes the PR comment
4143 # Edits existing or creates new comment
7274 - name : Get newly added and changed files
7375 id : changed-files
7476 run : |
75- ACMR_FILES=$(git diff --name-only --diff-filter=ACMR $GITHUB_BASE_REF...$GITHUB_HEAD_REF)
76-
77- mapfile -t "PUBLISH_FILES" < <(echo "$ACMR_FILES" | grep \
78- -e "^ingestion-data/staging/dataset-config/.*\.json$" \
79- -e "^ingestion-data/staging/collections/.*\.json$"
77+ mapfile -t "PUBLISH_FILES" < <(git diff --name-only --diff-filter=ACMR origin/$GITHUB_BASE_REF...HEAD -- \
78+ 'ingestion-data/staging/dataset-config/**.json' \
79+ 'ingestion-data/staging/collections/**.json'
8080 )
8181
8282 echo "all_changed_files=${PUBLISH_FILES[*]}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments