The below warning is initiated from aws-actions/setup-sam@v2 step:

This is due to the depreciation of save-state and set-output workflow commands.
Kindly update @actions/core to use the file-command version of save-state and set-output workflow commands. Thank you!
The below warning is initiated from

aws-actions/setup-sam@v2step:This is due to the depreciation of
save-stateandset-outputworkflow commands.Kindly update @actions/core to use the file-command version of
save-stateandset-outputworkflow commands. Thank you!