Photoshop 2023 does not allow direct saving as jpeg. This requires that all previously created actions changing to jpeg be redone. Also, when creating a new action with "save as jpeg" and "close" in it, a window pops up before it will complete saying, save changes. This is confusing and if you check it thinking it means the changes of the action your in for trouble. It is referring to the original file and it will change the original file while keeping it as a psd. This happened to me on an action to downsize to jpeg and downsized 20 originals I had spent hours editing. I now have to do all that editing again from the raw files so I will have the full size psd files I want. When creating the action, that last "save changes" window should not appear when the action is a "save as" and the destination is a new folder.