Replace `set-output` with environment files in CI.