File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ jobs:
1818 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
1919 with :
2020 fetch-depth : 0
21+ persist-credentials : false
2122
2223 - name : Get changed model files
2324 id : changed-models
2425 run : |
25- changed_models=$(git diff --name-only origin/${{ github.base_ref } }...HEAD -- 'codegen/aws-models/*.json' | xargs -I {} basename {} .json)
26+ changed_models=$(git diff --name-only origin/${GITHUB_BASE_REF }...HEAD -- 'codegen/aws-models/*.json' | xargs -I {} basename {} .json)
2627 echo "models<<EOF" >> $GITHUB_OUTPUT
2728 echo "$changed_models" >> $GITHUB_OUTPUT
2829 echo "EOF" >> $GITHUB_OUTPUT
5455 if [ "$valid_entry_found" = false ]; then
5556 missing_changelogs="${missing_changelogs}\n - ${service} (no valid changelog entry in ${changelog_dir})"
5657 fi
57- done <<< "${{ steps.changed-models.outputs.models } }"
58+ done <<< "${STEPS_CHANGED_MODELS_OUTPUTS_MODELS }"
5859
5960 if [ -n "$missing_changelogs" ]; then
6061 printf "::error::Missing changelog entries for the following services:%b\n" "$missing_changelogs"
6566 fi
6667
6768 echo "All modified models have corresponding changelog entries."
69+ env :
70+ STEPS_CHANGED_MODELS_OUTPUTS_MODELS : ${{ steps.changed-models.outputs.models }}
You can’t perform that action at this time.
0 commit comments